.shop-admin-page {
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 18%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.admin-shell {
  max-width: 1240px;
  margin: 28px auto 56px;
  padding: 0 24px;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-topbar-left {
  display: block;
  max-width: 720px;
}

.admin-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-topbar-left h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #0f172a;
}

.admin-lead {
  margin: 12px 0 14px;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
}

.admin-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-access-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.admin-access-tag.is-active {
  background: #effaf1;
  border-color: rgba(22, 163, 74, 0.18);
  color: #15803d;
}

.admin-btn-primary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  gap: 8px;
  font: 700 12px/1 Inter, sans-serif;
  border: 1px solid #0f172a;
  background: #111827;
  color: #fff;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(460px, 540px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.admin-panel-sticky {
  position: sticky;
  top: 22px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 0;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.admin-panel-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

.admin-create-bar {
  margin: 18px 22px 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #f8fafc;
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}

.admin-create-bar.is-open {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.admin-create-trigger {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 13px/1 Inter, sans-serif;
  color: #0f172a;
  cursor: pointer;
}

.admin-create-trigger:hover {
  background: rgba(255, 255, 255, 0.6);
}

.admin-create-trigger span {
  flex: 1;
  text-align: left;
}

.admin-create-chevron {
  color: #94a3b8;
  transition: transform 0.22s ease;
}

.admin-create-bar.is-open .admin-create-chevron {
  transform: rotate(180deg);
}

.admin-create-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}

.admin-create-bar.is-open .admin-create-panel {
  grid-template-rows: 1fr;
}

.admin-create-panel > .admin-form {
  overflow: hidden;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
}

.admin-form-mode {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.admin-form-grid-compact {
  grid-template-columns: 1fr;
}

.admin-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #334155;
}

.admin-field input[type="text"],
.admin-field input[type="number"],
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  padding: 12px 14px;
  font: 500 13px/1.4 Inter, sans-serif;
  line-height: 1.25;
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-field input[type="text"],
.admin-field input[type="number"],
.admin-field select {
  min-height: 46px;
}

.admin-field textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-field input::placeholder,
.admin-field textarea::placeholder {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.2;
}

.admin-field input[type="text"]:focus,
.admin-field input[type="number"]:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.admin-field small {
  font-size: 11px;
  color: #64748b;
}

.admin-file-wrap {
  position: relative;
  min-height: 46px;
}

.admin-file-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-file-label {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  background: #fff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-preview-box {
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.admin-preview-box > span,
.admin-preview-box > i {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.admin-preview-box.has-media > span,
.admin-preview-box.has-media > i {
  display: none;
}

.admin-preview-box img,
.admin-preview-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
}

.admin-btn-submit,
.admin-btn-reset {
  min-height: 44px;
  border-radius: 12px;
  font: 700 13px/1 Inter, sans-serif;
}

.admin-btn-submit {
  flex: 1;
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
}

.admin-btn-reset {
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #475569;
}

.admin-catalog {
  padding: 0 22px 22px;
}

.admin-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  min-height: 240px;
}

.admin-empty {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.admin-empty strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.admin-empty span {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.admin-item {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
}

.admin-item.is-active {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 22px 42px rgba(37, 99, 235, 0.12);
}

.admin-item-media {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.admin-item-media img,
.admin-item-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-item-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.admin-item-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}

.admin-item-id {
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
  word-break: break-word;
}

.admin-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-item-type,
.admin-item-price {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.admin-item-type {
  background: #f8fafc;
  color: #475569;
  text-transform: capitalize;
}

.admin-item-price {
  background: #fff7ed;
  color: #c2410c;
}

.admin-item-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-item-edit,
.admin-item-delete {
  min-height: 36px;
  border-radius: 10px;
  font: 700 12px/1 Inter, sans-serif;
}

.admin-item-edit {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #0f172a;
}

.admin-item-delete {
  border: 1px solid rgba(220, 38, 38, 0.16);
  background: #fff5f5;
  color: #b91c1c;
}

.admin-item-edit:hover:not(:disabled) {
  background: #eef2f7;
}

.admin-item-delete:hover:not(:disabled) {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.22);
}

.admin-item-edit:disabled,
.admin-item-delete:disabled,
.admin-btn-submit:disabled,
.admin-btn-reset:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-panel-sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .admin-shell {
    padding: 0 16px;
    margin-top: 18px;
  }

  .admin-topbar {
    flex-direction: column;
  }

  .admin-topbar-right {
    justify-content: flex-start;
  }

  .admin-form-grid,
  .admin-form-grid-compact {
    grid-template-columns: 1fr;
  }

  .admin-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
