/* Shared colours, fonts and small parts for the shop and the admin. */
:root, [data-theme="classic"] {
  /* Same palette as the gift shop: white, cream, sand, gold and cocoa. */
  --accent: #2d2620; --accent-ink: #fff; --accent-2: #c5a880; --gold-ink: #a88b62; --soft: #f3ece1; --soft-2: #f9f6f0;
  --bg: #fff; --surface: #fff; --ink: #2d2620; --muted: #6b6259; --line: #ece4d8; --ok: #2f7d55; --bad: #b3261e; --warn: #9a6a12;
  --serif: "Playfair Display", "Amiri", Georgia, serif;
  --sans: Inter, "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
[data-theme="berry"] { --accent: #c2185b; --accent-2: #e8a917; --gold-ink: #c2185b; --soft: #fdeef3; --soft-2: #fff4dc; --bg: #fff8f4; --ink: #2a1a2e; --muted: #756678; --line: #f0e1e6; }
[data-theme="gold"] { --gold-ink: #9a6b00; --accent: #9a6b00; --accent-2: #2a2116; --soft: #f7efdb; --soft-2: #f1ece4; --bg: #fbf8f2; --ink: #211b14; --muted: #6f665a; --line: #ece3d2; }
[data-theme="sky"] { --gold-ink: #1f5fd6; --accent: #1f5fd6; --accent-2: #f2a33a; --soft: #e8f0ff; --soft-2: #fff2df; --bg: #f6f9ff; --ink: #18223a; --muted: #5d6882; --line: #dfe7f6; }
[data-theme="mint"] { --gold-ink: #0d8070; --accent: #0d8070; --accent-2: #f08a5d; --soft: #e1f5ef; --soft-2: #fff0e7; --bg: #f5fbf9; --ink: #16302b; --muted: #5a716c; --line: #d9ece6; }
[data-theme="lilac"] { --gold-ink: #7a3fd1; --accent: #7a3fd1; --accent-2: #f2b62f; --soft: #f1e9fd; --soft-2: #fff5dc; --bg: #fbf8ff; --ink: #251b36; --muted: #6c6280; --line: #e9e0f6; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--sans);
}
h1, h2, h3, .display { font-family: var(--serif); font-weight: 700; text-wrap: balance; line-height: 1.25; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: .55em 1.2em;
  border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; letter-spacing: .02em;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .1s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.soft { background: var(--soft); color: var(--accent); }
.btn.wa { background: #1fa855; color: #fff; }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn.small { min-height: 34px; padding: .3em .9em; font-size: 13px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; flex: none; }

label.field { display: grid; gap: 5px; font-size: 14px; }
label.field > span { color: var(--muted); font-weight: 500; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 44px; padding: .5em .8em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.toast {
  position: fixed; inset-inline: 16px; bottom: 20px; margin: auto; max-width: 420px; z-index: 100; padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); text-align: center; font-weight: 500;
}
.toast.bad { background: var(--bad); }
.price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-inline-start: .35em; }
.muted { color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
