:root {
  --ink: #1b1d1f;
  --muted: #666f77;
  --line: #d9dee3;
  --surface: #ffffff;
  --background: #f7f8f5;
  --primary: #146c5c;
  --primary-dark: #0e4e43;
  --accent: #d94f30;
  --soft-accent: #fff1ec;
  --shadow: 0 18px 42px rgba(27, 29, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 18px 20px;
}

.brand {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 12px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--soft-accent);
  color: var(--accent);
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 34px 20px 56px;
}

.page-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.heading-visual {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 230px;
  object-fit: cover;
  width: 28%;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.intro {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 620px;
}

.primary-action,
.secondary-action,
button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
}

.primary-action,
button {
  background: var(--primary);
  color: #ffffff;
}

.primary-action:hover,
button:hover {
  background: var(--primary-dark);
}

.secondary-action {
  background: #e8ece7;
  color: var(--ink);
}

.toolbar,
.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  padding: 20px;
}

.hero-panel {
  align-items: center;
  background: linear-gradient(120deg, #ffffff 0%, #ffffff 52%, #edf5f1 52%, #edf5f1 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  margin-bottom: 24px;
  overflow: hidden;
  padding: 24px;
}

.hero-panel h2 {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-panel p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.hero-panel img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.toolbar label,
.field-group label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.search-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(20, 108, 92, 0.14);
}

.status-message {
  color: var(--muted);
  font-weight: 700;
  min-height: 24px;
}

.helper-note {
  background: #edf5f1;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 20px;
  padding: 12px 14px;
}

.status-message.success {
  color: var(--primary);
}

.status-message.error,
.field-error {
  color: #b42318;
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 390px;
  padding: 20px;
}

.product-image {
  aspect-ratio: 3 / 2;
  background: #eef4ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-card h2 {
  margin-bottom: 0;
}

.product-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--soft-accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 10px;
}

.price {
  color: var(--primary);
  font-size: 1.55rem;
  font-weight: 900;
}

.description {
  color: var(--muted);
  flex: 1;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
}

.danger-button {
  background: #b42318;
}

.danger-button:hover {
  background: #8f1d13;
}

.form-shell {
  max-width: 760px;
}

.field-group {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-error {
  display: block;
  font-size: 0.86rem;
  min-height: 20px;
  padding-top: 4px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 680px) {
  .navbar,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links,
  .search-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: grid;
  }

  .page-heading .primary-action,
  .search-row button,
  .form-actions > * {
    width: 100%;
  }

  .heading-visual {
    max-width: none;
    width: 100%;
  }

  .hero-panel {
    background: var(--surface);
    grid-template-columns: 1fr;
    padding: 18px;
  }
}
