:root {
  color-scheme: light;
  --ink: #1d1b20;
  --muted: #6a6470;
  --line: #ded7de;
  --surface: #ffffff;
  --soft: #f7f2f4;
  --accent: #b02a4d;
  --accent-dark: #7f1934;
  --green: #138a4b;
}

* {
  box-sizing: border-box;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 64px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header.compact {
  padding-top: 22px;
  padding-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.intro {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.admin-link,
button,
.order-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.admin-link {
  background: #efe7ec;
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.product-card,
.panel,
.admin-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  overflow: hidden;
}

.product-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #eadfe5;
  object-fit: cover;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.product-body {
  padding: 14px;
}

.product-body h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.price {
  color: var(--accent-dark);
  font-weight: 700;
}

.order-link {
  width: 100%;
  margin-top: 12px;
  background: var(--green);
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.admin-layout {
  max-width: 980px;
}

.panel {
  padding: 18px;
}

.hidden {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.full,
.form-actions,
.checkbox,
.panel-heading {
  grid-column: 1 / -1;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  width: auto;
  min-height: auto;
}

.form-actions,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-products {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.admin-thumb {
  width: 84px;
  height: 96px;
  border-radius: 6px;
  background: #eadfe5;
  object-fit: cover;
}

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

@media (max-width: 720px) {
  .site-header,
  .toolbar,
  .product-form,
  .admin-item {
    grid-template-columns: 1fr;
  }

  .site-header,
  .admin-item {
    display: grid;
  }

  .admin-actions,
  .form-actions,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
