:root {
  --bg: #f7f1e6;
  --surface: #fffaf1;
  --ink: #241b33;
  --muted: #5d5470;
  --accent: #8a3b3b;
  --accent-ink: #fffaf1;
  --gold: #b9852f;
  --border: #e3d6bf;
  --header-bg: linear-gradient(160deg, #2b1f45 0%, #1c1530 60%, #12101f 100%);
  --header-ink: #f6ecd6;
  --shadow: 0 6px 20px rgba(36, 27, 51, 0.10);
  --radius: 14px;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15111f;
    --surface: #1f1930;
    --ink: #efe6d4;
    --muted: #b6abc8;
    --accent: #c9614f;
    --accent-ink: #15111f;
    --gold: #e0b062;
    --border: #342a4a;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; }

/* Header */
.site-header {
  background: var(--header-bg);
  color: var(--header-ink);
  text-align: center;
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--gold);
}
.site-header h1 {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: .04em;
  margin-bottom: .15em;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: #e0b062;
  margin: 0 0 .75rem;
}
.tagline {
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  font-style: italic;
  margin: 0 0 1.75rem;
  opacity: .92;
}

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: .7em 1.4em;
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-ghost {
  background: transparent;
  color: var(--header-ink);
  border: 2px solid #e0b062;
}

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  text-align: center;
  margin-bottom: 1.25em;
}
.section h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: .5em auto 0;
  border-radius: 3px;
}

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; background: #2b1f45; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.2rem; }
.desc { color: var(--muted); margin: 0 0 1rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--gold); margin: 0; }
.loading { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* How ordering works */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.steps h3 { font-size: 1rem; margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }
.num {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold);
  color: #1c1530;
  font-family: var(--font-display);
  font-weight: 700;
}
.pay-note {
  text-align: center;
  font-weight: 700;
  margin: 1.5rem auto 0;
  padding: .75em 1em;
  max-width: 520px;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  background: #12101f;
  color: #cfc4dd;
  text-align: center;
  padding: 32px 0;
  margin-top: 24px;
}
.site-footer a { color: #e0b062; font-weight: 700; }
.small { font-size: .85rem; opacity: .7; margin: .25rem 0 0; }

/* Order popup */
dialog {
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: min(440px, calc(100% - 32px));
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
dialog::backdrop { background: rgba(18, 16, 31, .7); }
.dialog-inner { padding: 20px; text-align: center; position: relative; }
.dialog-inner img { border-radius: 10px; margin-bottom: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.dialog-inner .pay-note { margin: 1rem 0; font-size: .95rem; }
.dialog-inner .btn { width: 100%; }
.close {
  position: absolute;
  top: 26px; right: 26px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(18,16,31,.75);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.missing { color: var(--accent); font-weight: 700; }

@media (max-width: 480px) {
  .site-header { padding: 44px 0 40px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
