:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f7fb;
  background: #050910;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(79, 140, 255, 0.1), transparent 55%), #050910;
  color: #f5f7fb;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #7fb9ff;
  margin: 0 0 0.35rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
}

.card {
  background: rgba(10, 17, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-media-preview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-media-slot {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-media-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 25px 45px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.hero-media-frame--empty {
  border-style: dashed;
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9eb4d0;
  font-size: 0.9rem;
  background: rgba(5, 9, 16, 0.4);
}

.hero-media-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.small {
  font-size: 0.8rem;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

[data-product-form-card].editing {
  border-color: rgba(79, 188, 255, 0.7);
  box-shadow: 0 30px 60px rgba(79, 188, 255, 0.2);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem;
  color: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

button.primary {
  background: linear-gradient(135deg, #4cbcff, #1575ff);
  color: #050910;
}

button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.admin-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #8fe9ff;
}

.muted {
  color: #9eb4d0;
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.5rem;
  }
}
