:root {
  --bg: #fff9f4;
  --surface: #ffffff;
  --surface-2: #fff0e8;
  --ink: #24212b;
  --muted: #716a76;
  --brand: #b94f72;
  --brand-dark: #843457;
  --accent: #f4a261;
  --line: #eadbd4;
  --success: #21835b;
  --shadow: 0 18px 45px rgba(90, 52, 72, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffe4d5 0, transparent 34rem), var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 244, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 219, 212, 0.8);
}
.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 24px rgba(185, 79, 114, .25);
}
.brand strong { display: block; font-size: 1.1rem; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: .78rem; margin-top: -.1rem; }
.nav-links { display: flex; align-items: center; gap: .5rem; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding: .65rem .85rem;
  border-radius: 999px;
}
.nav-links a:hover { background: var(--surface-2); color: var(--brand-dark); }
.nav-toggle { display: none; border: 0; background: var(--surface); border-radius: 12px; padding: .55rem .7rem; font-size: 1.25rem; box-shadow: var(--shadow); }

main { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 0 3rem;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.07em;
  margin: .25rem 0 1.25rem;
  max-width: 850px;
}
.hero-content p { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  margin: 0;
  color: var(--brand-dark);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .14em;
  font-weight: 900;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 16px 28px rgba(132, 52, 87, .25); }
.btn-secondary { color: var(--brand-dark); background: var(--surface); border: 1px solid var(--line); }
.btn-small { min-height: 38px; padding: .55rem .8rem; font-size: .9rem; }
.hero-card, .panel {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(234, 219, 212, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 1.5rem; position: relative; overflow: hidden; }
.hero-card:after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(244, 162, 97, .18); right: -70px; bottom: -70px; }
.hero-card h2 { margin: .7rem 0 .4rem; letter-spacing: -.03em; }
.hero-card p, .hero-card li { color: var(--muted); }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 0 8px rgba(33,131,91,.12); }

.panel { padding: clamp(1rem, 3vw, 1.6rem); margin: 1.5rem 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: .15rem 0 0; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.045em; }
.summary-pill { background: var(--surface-2); color: var(--brand-dark); border: 1px solid var(--line); border-radius: 999px; padding: .55rem .85rem; font-weight: 900; white-space: nowrap; }
.filters, .form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0 1.25rem;
}
label { display: grid; gap: .35rem; color: var(--muted); font-weight: 800; font-size: .88rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .85rem .9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(185,79,114,.1); }
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(90,52,72,.08);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--surface-2); }
.card-body { padding: 1rem; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.badge { font-size: .75rem; font-weight: 900; color: var(--brand-dark); background: var(--surface-2); border-radius: 999px; padding: .25rem .55rem; }
.product-card h3 { margin: .3rem 0 .35rem; line-height: 1.2; letter-spacing: -.025em; }
.product-card p { color: var(--muted); margin: 0; font-size: .94rem; }
.price-row { display: flex; justify-content: space-between; align-items: end; gap: .8rem; margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.price-row strong { font-size: 1.35rem; color: var(--brand-dark); }
.sold-ribbon { background: #2b2b2b; color: #fff; border-radius: 999px; padding: .3rem .65rem; font-size: .75rem; font-weight: 900; }
.empty-state { text-align: center; color: var(--muted); padding: 2rem; }

.item-page { margin: 1.5rem 0; }
.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 1rem;
}
.gallery, .detail-card, .postage-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery { padding: 1rem; }
.main-photo { width: 100%; aspect-ratio: 1 / .78; object-fit: cover; border-radius: 18px; cursor: zoom-in; background: var(--surface-2); }
.thumb-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; margin-top: .6rem; }
.thumb-row button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: transparent; }
.thumb-row button.active { border-color: var(--brand); }
.thumb-row img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-card { padding: 1.25rem; align-self: start; }
.back-link { display: inline-flex; margin-bottom: .8rem; color: var(--brand-dark); text-decoration: none; font-weight: 900; }
.detail-card h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -.05em; margin: .35rem 0 .7rem; }
.meta-list { display: grid; gap: .6rem; margin: 1rem 0; }
.meta-item { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.meta-item span:first-child { color: var(--muted); font-weight: 800; }
.total-box { background: linear-gradient(135deg, var(--surface-2), #fff); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; margin: 1rem 0; }
.total-line { display: flex; justify-content: space-between; gap: 1rem; }
.total-line.grand { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid var(--line); font-size: 1.35rem; font-weight: 950; color: var(--brand-dark); }
.action-stack { display: grid; gap: .65rem; margin-top: 1rem; }
.paypal { background: #ffc439; color: #142c8e; }
.postage-card { margin-top: 1rem; padding: 1rem; }
.postage-card h3 { margin-top: 0; }
.dispatch-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .45rem; }
.dispatch-list li { padding: .65rem; background: var(--surface-2); border-radius: 12px; color: var(--muted); }
.dispatch-list strong { color: var(--ink); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-grid article { background: var(--surface-2); border: 1px solid var(--line); padding: 1rem; border-radius: 18px; }
.info-grid h3 { margin-top: 0; }
.muted { color: var(--muted); }
.admin-form { display: grid; gap: 1rem; }
.admin-form textarea { resize: vertical; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20,16,22,.88);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lightbox img { max-height: 86vh; max-width: 94vw; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.lightbox button { position: fixed; top: 1rem; right: 1rem; width: 46px; height: 46px; border: 0; border-radius: 50%; font-size: 2rem; cursor: pointer; background: #fff; color: var(--ink); }
.site-footer { text-align: center; color: var(--muted); padding: 2rem 1rem 3rem; }
.site-footer a { color: var(--brand-dark); font-weight: 800; }

@media (max-width: 900px) {
  .hero, .detail-shell { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .form-grid, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .navbar { align-items: flex-start; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 76px; left: 1rem; right: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: .5rem; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .hero { padding-top: 2.5rem; min-height: auto; }
  .hero-content h1 { font-size: 2.75rem; }
  .catalogue-grid, .filters, .form-grid, .info-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .thumb-row { grid-template-columns: repeat(4, 1fr); }
  main { padding-inline: .85rem; }
  .panel, .gallery, .detail-card { border-radius: 18px; }
}
