:root {
  --ink: #292724;
  --muted: #6e675e;
  --paper: #f8f3ea;
  --panel: #fffaf1;
  --line: #d9ccba;
  --charcoal: #1e211f;
  --gold: #b68b45;
  --clay: #9b6f5c;
  --sage: #7c876f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(248, 243, 234, .92);
  border-bottom: 1px solid rgba(41, 39, 36, .11);
  backdrop-filter: blur(18px);
}
.brand {
  display: grid;
  line-height: .92;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}
.brand span { color: var(--muted); }
.brand strong { font-weight: 500; }
nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.cart-button, .site-header button, .form-actions button, .cart-head button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
}
.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 7px;
  color: white;
  background: var(--charcoal);
  border-radius: 999px;
}

.hero {
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(30,33,31,.78), rgba(30,33,31,.18) 58%, rgba(30,33,31,.05)),
    url("/images/bijou-10.svg") center right 12% / min(620px, 74vw) no-repeat,
    linear-gradient(135deg, #2d302c, #c6b8a5);
  color: white;
}
.hero-copy { max-width: 620px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
}
.hero .eyebrow { color: #f1d59a; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; }
.hero h1 { margin-bottom: 14px; font-size: clamp(54px, 9vw, 116px); line-height: .86; }
.hero p:not(.eyebrow) { max-width: 510px; color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.6; }
.primary-link, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: white;
  background: var(--charcoal);
  min-height: 46px;
}

.section { padding: 58px clamp(18px, 5vw, 72px); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-title h2, .atelier h2, .contact h2 { margin-bottom: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 9px 13px;
}
.filters button.active { color: white; background: var(--charcoal); border-color: var(--charcoal); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.product-card {
  display: grid;
  gap: 13px;
  min-width: 0;
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #ddd1c1;
}
.product-meta { display: grid; gap: 7px; }
.product-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.product-row h3 { margin: 0; font-size: 18px; line-height: 1.15; }
.price { white-space: nowrap; font-weight: 700; }
.product-card p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
.product-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--panel);
}
.product-card button {
  border: 0;
  border-radius: 8px;
  padding: 12px;
  color: white;
  background: var(--clay);
}

.atelier, .contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(28px, 6vw, 80px);
  padding: 64px clamp(18px, 5vw, 72px);
  background: var(--charcoal);
  color: white;
}
.contact { background: #e8ddcf; color: var(--ink); }
.atelier p, .contact p { color: rgba(255,255,255,.72); line-height: 1.7; }
.contact p { color: var(--muted); }
.contact-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.contact-links a { border: 1px solid var(--line); border-radius: 999px; padding: 13px 16px; background: var(--panel); }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  justify-content: flex-end;
  background: rgba(0,0,0,.34);
}
.cart-drawer.open { display: flex; }
.cart-panel {
  width: min(470px, 100vw);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: var(--panel);
}
.cart-head, .cart-total, .cart-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.cart-items { display: grid; gap: 14px; margin: 22px 0; }
.cart-line {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-line small { display: block; color: var(--muted); margin-top: 4px; }
.order-form, .admin-login form { display: grid; gap: 11px; margin-top: 22px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
  color: var(--ink);
}
textarea { min-height: 92px; resize: vertical; }
.form-status { min-height: 20px; color: var(--muted); font-size: 14px; }

.admin-body { background: #f3ecdf; }
.admin-shell { padding: 34px clamp(18px, 5vw, 72px); }
.admin-login, .admin-panel {
  max-width: 1120px;
  margin: 0 auto;
}
.admin-login {
  max-width: 420px;
  padding-top: 70px;
}
.hidden { display: none !important; }
.admin-title { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 24px; }
.product-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.product-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.product-form .wide { grid-column: 1 / -1; }
.product-form .check { align-content: end; grid-template-columns: auto 1fr; color: var(--ink); }
.product-form .check input { width: auto; }
.form-actions { display: flex; gap: 10px; align-items: end; }
.admin-list, .orders-panel { display: grid; gap: 12px; margin-top: 26px; }
.admin-item, .order-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.admin-item img { width: 78px; height: 92px; object-fit: cover; border-radius: 6px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.admin-actions button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; background: white; }

@media (max-width: 760px) {
  .site-header { align-items: start; flex-wrap: wrap; }
  nav { order: 3; width: 100%; overflow-x: auto; }
  .hero { min-height: 68vh; background-size: min(520px, 118vw), auto; background-position: center bottom 8%; }
  .section-title, .atelier, .contact, .product-form, .admin-item, .order-item { grid-template-columns: 1fr; }
  .product-form .wide { grid-column: auto; }
}
