:root {
  --bg: #f7f1e7;
  --panel: rgba(255, 249, 241, 0.92);
  --ink: #231a12;
  --muted: #6a5b4b;
  --line: rgba(35, 26, 18, 0.12);
  --accent: #9a3412;
  --accent-strong: #7c2d12;
  --accent-soft: #f59e0b;
  --shadow: 0 18px 48px rgba(63, 37, 20, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(154, 52, 18, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.16), transparent 28%),
    var(--bg);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero, .panel {
  width: min(960px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  padding: 48px;
}

.hero-shop {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(154, 52, 18, 0.08), rgba(245, 158, 11, 0.08));
}

.hero-panel-label,
.product-category,
.product-save {
  font-weight: 700;
  color: var(--accent-strong);
}

.hero-list {
  margin: 16px 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-panel-foot {
  margin: 0;
  color: var(--muted);
}

.panel {
  padding: 32px;
}

.auth-panel {
  width: min(460px, 100%);
}

.access-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(154, 52, 18, 0.06);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

h1, h2 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(32px, 4vw, 56px);
}

h2 {
  font-size: 20px;
}

.muted {
  color: var(--muted);
}

.cta-row, .panel-head, .grid-two {
  display: flex;
  gap: 16px;
}

.cta-row {
  margin-top: 28px;
  flex-wrap: wrap;
}

.panel-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.grid-two {
  margin-top: 24px;
  align-items: stretch;
}

.admin-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
}

.section {
  width: min(1120px, 100%);
  margin-top: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.compact {
  margin: 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
}

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

.product-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-condition {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.94);
  border: 1px solid rgba(35, 26, 18, 0.1);
  font-weight: 700;
  font-size: 13px;
}

.product-body {
  padding: 18px;
}

.product-body h3 {
  margin: 6px 0 10px;
  font-size: 22px;
}

.product-note {
  margin: 0 0 14px;
  color: var(--muted);
  min-height: 44px;
}

.product-price-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.product-price-row strong {
  font-size: 26px;
  color: var(--accent-strong);
}

.product-price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.product-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.product-save {
  margin: 12px 0 0;
}

.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  resize: vertical;
}

.checkbox {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
}

.checkbox input {
  width: auto;
}

.product-list-admin {
  display: grid;
  gap: 10px;
}

.order-wrap {
  width: min(760px, 100%);
}

.order-card {
  padding: 28px;
}

.product-detail {
  padding: 24px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.product-detail-image {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.admin-product-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  cursor: pointer;
}

.admin-product-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-table-card {
  margin-top: 24px;
}

.nested-card {
  padding: 20px;
}

.order-list-admin {
  display: grid;
  gap: 12px;
}

.order-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.catalog-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.asset-list,
.stack-mini {
  display: grid;
  gap: 12px;
}

.asset-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
}

.asset-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.asset-item-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.inline-warning {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
}

.warning-warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.warning-hard {
  border-color: rgba(154, 52, 18, 0.35);
  background: rgba(154, 52, 18, 0.12);
}

.toolbar-select {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  font: inherit;
}

.toolbar-input {
  min-width: 240px;
  flex: 1 1 280px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  font: inherit;
}

.order-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  color: var(--muted);
}

.order-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.order-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.order-product {
  margin: 10px 0 8px;
  font-weight: 700;
}

.order-status {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(154, 52, 18, 0.08);
}

.status-new { color: var(--accent-strong); }
.status-confirmed { color: #0f766e; }
.status-done { color: #166534; }
.status-cancelled { color: #991b1b; }

.compact-actions {
  margin-top: 12px;
}

.card {
  flex: 1 1 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.form-stack {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 720px) {
  .hero, .panel {
    padding: 24px;
  }

  .panel-head, .grid-two, .section-head, .hero-shop, .admin-layout, .product-grid, .product-meta {
    display: block;
  }

  .section-head, .admin-layout, .product-grid {
    gap: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-top: 18px;
  }

  .product-card + .product-card,
  .admin-product-item + .admin-product-item {
    margin-top: 12px;
  }

  .panel-head, .grid-two {
    flex-direction: column;
  }
}
