/* Elegant Head Lovers — black and gold, taken from the salon's logo. */
:root {
  --bg: #0b0b0b;
  --surface: #161514;
  --line: #2b2823;
  --text: #f5efe2;
  --muted: #a89f8d;
  --gold: #d4af5a;
  --gold-strong: #e8cc85;
  --danger: #ff8f7a;
  --ok: #8fd6a0;
  --radius: 14px;
  --tabs-h: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, p, ul, dl, dd, fieldset, table { margin: 0; padding: 0; }
h1 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 14px; text-wrap: balance; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; font-weight: 600; }
ul { list-style: none; }
a { color: var(--gold); }
fieldset { border: 0; min-width: 0; margin-bottom: 18px; }
legend { padding: 0; margin-bottom: 8px; font-weight: 600; }

:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.muted { color: var(--muted); font-size: .9rem; }
.small { font-size: .8rem; }
.script { font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; color: var(--gold); font-weight: 400; text-transform: none; letter-spacing: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* Layout */
.top {
  position: sticky; top: 0; z-index: 5;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(11, 11, 11, .92);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.brand { color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 600; }
.brand .script { font-size: 1.25rem; margin-left: 2px; }

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom));
}
section { margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.section-head a { font-size: .9rem; }
.back { display: inline-block; margin-bottom: 10px; text-decoration: none; }

.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 5;
  display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
  background: #100f0e;
  border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  flex: 1; max-width: 112px; height: var(--tabs-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .7rem;
}
.tab .icon { width: 22px; height: 22px; }
.tab.is-active { color: var(--gold); }
.tab__badge {
  position: absolute; top: 6px; left: 50%; margin-left: 6px;
  min-width: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: #000; font-size: .7rem; font-weight: 700; text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid var(--gold); border-radius: 999px;
  background: transparent; color: var(--gold);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn--gold { background: var(--gold); color: #0b0b0b; }
.btn--ghost { border-color: transparent; color: var(--muted); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn--block { display: flex; width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:active { transform: translateY(1px); }

/* Home */
.hero { text-align: center; padding: 14px 0 6px; }
.logo { width: 76px; height: 76px; color: var(--gold); }
.hero h1 { margin: 10px 0 6px; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .12em; }
.hero h1 .script { display: block; font-size: 2.4rem; line-height: 1; }
.hero p { color: var(--muted); max-width: 34ch; margin: 0 auto; }
.hero__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 14px; }
.hero .status { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.status.is-open { color: var(--ok); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.panel > * + * { margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { flex: 1 1 auto; min-height: 44px; padding: 0 12px; font-size: .9rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 3px 0; }
.hours td { text-align: right; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }

/* Lists and cards */
.list { border-top: 1px solid var(--line); margin-bottom: 14px; }
.list > li { border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.row--link { color: inherit; text-decoration: none; }
.row__main { flex: 1; min-width: 0; }
.row__meta { font-size: .9rem; margin-top: 4px; }
.row strong { color: var(--gold-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.card { display: block; color: inherit; text-decoration: none; }
.card h3 { font-size: .9rem; font-weight: 500; margin-top: 8px; }
.card__price { color: var(--gold-strong); font-weight: 600; font-size: .9rem; }
.art {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, #2a2418, #131210 70%);
  color: var(--gold);
}
.art .icon { width: 36%; height: 36%; stroke-width: 1; opacity: .8; }
.product .art { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.product h1 { margin-bottom: 6px; }
.product form { margin-top: 16px; }

/* Chips (filters and radio pickers) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-size: .9rem; text-decoration: none; cursor: pointer; font-variant-numeric: tabular-nums;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.is-active, .chip:has(input:checked) { background: var(--gold); border-color: var(--gold); color: #0b0b0b; font-weight: 600; }
.chip:has(input:focus-visible) { outline: 2px solid var(--gold-strong); outline-offset: 2px; }
fieldset .chips { margin-bottom: 0; }

/* Forms */
.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 6px;
  min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem; font-weight: 400;
}
.field [aria-invalid] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
}
.option:has(input:checked) { border-color: var(--gold); }
.option:has(input:disabled) { opacity: .55; cursor: default; }
.option input { accent-color: var(--gold); width: 20px; height: 20px; flex: none; }
.option small { display: block; color: var(--muted); font-size: .8rem; }
.error { color: var(--danger); font-size: .9rem; margin-top: 8px; }
.error:empty { display: none; }

.stepper { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 1.2rem; cursor: pointer;
}

.totals { margin: 14px 0; font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.totals dt { color: var(--muted); }
.totals dd { text-align: right; }
.totals__total { font-size: 1.1rem; font-weight: 700; }
.totals__total dt { color: var(--text); }
.totals__total dd { color: var(--gold-strong); }

/* States */
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }
.empty .btn { margin-top: 16px; }
.done { text-align: center; padding: 10px 0 18px; }
.done h1 { margin-bottom: 4px; }
.done__tick { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: var(--gold); color: #0b0b0b; font-size: 1.4rem; }
.ref { font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--gold-strong); margin-bottom: 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); z-index: 10;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: #0b0b0b; font-size: .9rem; font-weight: 600; white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.sheet {
  width: min(92vw, 380px); padding: 22px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--text); text-align: center;
}
.sheet::backdrop { background: rgba(0, 0, 0, .7); }
.sheet h2 { font-size: 1.5rem; margin: 12px 0 2px; }
.sheet .muted { margin-bottom: 10px; }

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