:root {
  --ink: #3a2620;
  --muted: #8a7267;
  --cream: #fbf3ec;
  --paper: #ffffff;
  --accent: #c97b86;
  --accent-dark: #a85c68;
  --gold: #c8a06a;
  --gold-dark: #a97e46;
  --line: #f1e3d8;
  --ok: #3f7a56;
  --danger: #b23b3b;
  --shadow: 0 18px 55px rgba(120, 60, 50, .14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button {
  border: 0;
  border-radius: 999px;
  padding: .72rem 1.1rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
button:hover, .button:hover { background: var(--accent-dark); }
.button.secondary { background: #f6e9e0; color: var(--ink); }
.button.danger { background: var(--danger); }
.button.small { padding: .48rem .8rem; font-size: .9rem; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 243, 236, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .6rem;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
  background: var(--paper);
}
.script {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-weight: 400;
  color: var(--accent);
}
.tagline {
  font-size: 1.4rem;
  margin: -.3rem 0 1rem;
}
.nav-links { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-weight: 700; }
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at 80% 10%, rgba(200, 160, 106, .28), transparent 28rem),
    linear-gradient(135deg, #fbf3ec, #f6dfe2);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 3rem; }
.eyebrow { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .14em; font-weight: 850; font-size: .8rem; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.1; margin: 0 0 .7rem; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.hero-card {
  background: var(--paper);
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero-mark {
  font-size: 5rem;
  text-align: center;
  width: 6.5rem;
  height: 6.5rem;
  line-height: 6.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--cream);
}
.section { padding: 4rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(120, 60, 50, .06);
}
.card-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f6e9e0; }
.card-body { padding: 1.15rem; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.price { color: var(--accent-dark); font-weight: 900; white-space: nowrap; }
.muted { color: var(--muted); }
.tag { display: inline-block; border-radius: 999px; background: #f6e9e0; padding: .22rem .6rem; font-size: .78rem; font-weight: 800; }
.form-card {
  max-width: 720px;
  margin: 2rem auto;
  background: var(--paper);
  padding: clamp(1.25rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 780; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #d9c3b8;
  border-radius: .8rem;
  padding: .75rem .85rem;
  background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.flash { margin: 1rem auto; padding: .8rem 1rem; border-radius: .8rem; max-width: 1180px; }
.flash.success { background: #e7f3ec; color: var(--ok); }
.flash.error { background: #fbe8e6; color: var(--danger); }
.cart-row, .order-card, .admin-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-bottom: .8rem;
}
.thumb { width: 74px; height: 74px; border-radius: .8rem; object-fit: cover; background: #f6e9e0; }
.qty { display: flex; align-items: center; gap: .35rem; }
.qty input { width: 56px; text-align: center; padding: .5rem; border: 1px solid var(--line); border-radius: .6rem; }
.qty strong { display: inline-block; min-width: 95px; text-align: right; }
.qty-btn { width: 2rem; height: 2rem; padding: 0; border-radius: 50%; font-weight: 900; }
.summary { margin-left: auto; max-width: 420px; text-align: right; }
.summary h2 { font-size: 1.6rem; white-space: nowrap; }
.dashboard { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 70px); }
.sidebar { background: #3a2620; color: #fff; padding: 1.3rem; }
.sidebar a { display: block; padding: .7rem .8rem; border-radius: .7rem; text-decoration: none; margin-bottom: .25rem; }
.sidebar a:hover { background: rgba(255, 255, 255, .1); }
.admin-main { padding: 2rem; min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; }
.metric { background: #fff; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; }
.metric strong { display: block; font-size: 1.8rem; }
.admin-row { grid-template-columns: auto auto 1fr auto auto; }
.admin-row .thumb { width: 88px; height: 66px; }
.status { border-radius: 999px; padding: .3rem .65rem; font-size: .82rem; font-weight: 800; background: #f6e9e0; }
.preview { width: 180px; height: 135px; object-fit: cover; border-radius: 1rem; background: #f6e9e0; }
.inline { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed #d9c3b8; border-radius: 1rem; }
footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); }
footer .script { font-size: 1.1rem; }

.drag-handle {
  cursor: grab;
  color: var(--gold-dark);
  font-size: 1.3rem;
  padding: 0 .4rem;
  user-select: none;
  touch-action: none;
}
[data-drag-item].dragging { opacity: .4; }
[data-drag-item] { transition: background .15s; }
.reorder-hint { font-size: .85rem; color: var(--muted); margin: -.4rem 0 1rem; }
.category-row { grid-template-columns: auto auto 1fr auto; }
.category-form { display: flex; gap: .6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.category-form input { border: 1px solid #d9c3b8; border-radius: .8rem; padding: .6rem .8rem; }

.variant-row { margin-bottom: .5rem; flex-wrap: wrap; }
.variant-label { min-width: 150px; font-weight: 750; color: var(--accent-dark); }
.variant-row [data-line-total] { display: inline-block; min-width: 100px; text-align: right; }
.variant-field { background: #fff9f4; border: 1px solid var(--line); border-radius: .8rem; padding: .8rem; }
.variant-field input[type="number"] { margin-top: .4rem; }
.hero-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 1.2rem; margin-bottom: 1rem; }
.video-embed { position: relative; width: 100%; max-width: 800px; padding-bottom: 45%; height: 0; overflow: hidden; border-radius: 1rem; background: #000; margin-top: 1rem; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
[data-disabled-link] { opacity: .5; cursor: not-allowed; }

@media (max-width: 850px) {
  .hero-grid, .dashboard { grid-template-columns: 1fr; }
  .grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { display: flex; overflow-x: auto; gap: .4rem; }
  .sidebar a { white-space: nowrap; }
}
@media (max-width: 560px) {
  .grid, .metric-grid, .two-col { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; padding: .8rem 0; }
  .nav-links { justify-content: flex-end; font-size: .9rem; }
  .cart-row, .admin-row { grid-template-columns: 1fr; }
  .summary { text-align: left; margin-left: 0; }
}
