:root {
  /* warm beige-pink page; everything that used to be white is now an almost-white warm tone */
  --bg: #efe4dc; --surface: #fdf9f6; --surface-2: #e9dcd3; --text: #231f1a; --muted: #675e55;
  --line: #dbcbc0; --accent: #85653a; --accent-soft: #e8d6c2; --ok: #3a7349; --ok-soft: #e0eadd;
  --warn: #9c4f2a; --warn-soft: #f3dfd5; --info: #47668a;
  --rose-1: #e7d2d8; --rose-2: #efe4dc; --rose-ink: #87596a;
  --card: #fefbf9;                  /* fragrance cards */
  --field: #fffefd;                 /* text inputs: the lightest tone of all, a whisper off white */
  --photo-bg: #fefbf9;              /* behind product photos (their white blends into this) */
  --shadow: 0 1px 2px rgba(60,40,30,.07), 0 6px 24px rgba(60,40,30,.07);
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;          /* headings (Admin › Fondid) */
  --serif-weight: 600;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;   /* everything else */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110f0c; --surface: #1a1714; --surface-2: #231f1a; --text: #f1ebe2; --muted: #a79d90;
    --line: #322c26; --accent: #d7b27a; --accent-soft: #382d21; --ok: #7fbf8e; --ok-soft: #1b271e;
    --warn: #e58f65; --warn-soft: #321f17; --info: #8fb0cf;
    --rose-1: #251c1f; --rose-2: #110f0c; --rose-ink: #c79aab; --shadow: none;
    --field: #1f1b17; --photo-bg: #ece1da; --card: #1a1714;
  }
}
:root[data-theme="dark"] {
  --bg: #110f0c; --surface: #1a1714; --surface-2: #231f1a; --text: #f1ebe2; --muted: #a79d90;
  --line: #322c26; --accent: #d7b27a; --accent-soft: #382d21; --ok: #7fbf8e; --ok-soft: #1b271e;
  --warn: #e58f65; --warn-soft: #321f17; --info: #8fb0cf;
  --rose-1: #251c1f; --rose-2: #110f0c; --rose-ink: #c79aab; --shadow: none;
  --field: #1f1b17; --photo-bg: #ece1da; --card: #1a1714;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font-body); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: var(--serif-weight); line-height: 1.1; }
h1 { font-size: clamp(32px, 5vw, 46px); margin: 8px 0 10px; }
h2 { font-size: 30px; margin: 0 0 14px; }
.muted { color: var(--muted); }
.mt { margin-top: 18px !important; }
[hidden] { display: none !important; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* ---------- header ---------- */
.banner { background: linear-gradient(180deg, var(--rose-1), var(--rose-2)); border-bottom: 1px solid var(--line); }
.topbar { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 12px 14px; align-items: center; padding: 14px 16px; }
.accountlink .label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accountlink[aria-current] { border-color: var(--accent); }
.logo { display: block; line-height: 0; text-decoration: none; }
.logo img { width: 174px; height: auto; }
.tagline { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-ink); margin-top: 2px; line-height: 1.2; }
.searchform { position: relative; max-width: 460px; width: 100%; justify-self: end; }
.searchform input[type=search] { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 40px; box-shadow: var(--shadow); }
.searchform input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.searchform svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.cartlink { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.cartlink:hover { border-color: var(--accent); }
.cartlink svg { width: 20px; height: 20px; }
.cartlink .count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.cartlink .count[hidden] { display: none; }
.cartlink.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.1); } }
nav.main { border-bottom: 1px solid var(--line); background: var(--surface); }
nav.main ul { list-style: none; margin: 0 auto; padding: 0 16px; max-width: 1180px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.main a { display: block; padding: 12px 12px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
/* Language switch (ET | EN) at the end of the menu */
nav.main li.langs { margin-left: auto; display: flex; align-items: center; gap: 2px; padding-left: 12px; }
nav.main li.langs a { padding: 12px 6px; font-size: 13px; letter-spacing: .04em; }
nav.main li.langs a + a::before { content: "|"; color: var(--line); margin-right: 6px; }
nav.main li.langs a[aria-current] { border-bottom-color: transparent; font-weight: 700; }
/* Phones: the menu scrolls sideways, so the language switch comes first where it can be seen */
@media (max-width: 900px) {
  nav.main li.langs { order: -1; margin-left: 0; padding-left: 0; padding-right: 6px; border-right: 1px solid var(--line); }
}

/* ---------- flash ---------- */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 10px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.flash.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--text); }
.flash.warn { background: var(--warn-soft); border-color: var(--warn); color: var(--text); }
.flash.info { background: var(--surface); border-color: var(--info); color: var(--text); }
main > .wrap > .flash { margin-bottom: 10px; }
.paynow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

main { padding: 24px 0 40px; min-height: 50vh; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { opacity: .9; }
.btn.big { height: 48px; padding: 0 26px; font-size: 15px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--warn); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
label.field { display: grid; gap: 5px; font-size: 14px; font-weight: 500; }
label.field small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.err { color: var(--warn); font-size: 13px; font-weight: 500; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--warn); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; padding: 6px 14px; border-radius: 999px; text-decoration: none; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-current] { background: var(--accent-soft); color: var(--text); border-color: var(--accent); font-weight: 600; }
.badge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); text-decoration: none; }
a.badge:hover { border-color: var(--accent); color: var(--text); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.info { color: var(--info); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.cardlink { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.cardlink:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }

/* ---------- wish list heart ---------- */
.wish { margin: 0; }
.wish-icon { position: absolute; top: 8px; right: 8px; z-index: 2; }
.wishbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--rose-ink); font: inherit; }
.wish-icon .wishbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); background: color-mix(in srgb, var(--card) 88%, transparent); box-shadow: var(--shadow); padding: 0; }
.wishbtn svg { width: 20px; height: 20px; }
.wishbtn svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .15s ease; }
.wishbtn[aria-pressed="true"] svg path { fill: currentColor; }
.wishbtn:hover { color: var(--warn); border-color: var(--rose-ink); }
.wishbtn.bumped { animation: bump .35s ease; }
.wish-full { margin: -6px 0 18px; }
.wish-full .wishbtn { width: 100%; }
.wish-full .wishbtn[aria-pressed="true"] { border-color: var(--rose-ink); background: var(--rose-1); }
.wishlink svg { width: 20px; height: 20px; color: var(--rose-ink); }
.wishlink { padding: 0 14px; }
.card .pic { aspect-ratio: 1; background: var(--photo-bg); isolation: isolate; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Product photos have white backgrounds baked in: "multiply" lets that white take the beige-pink of the frame.
   The frames isolate the blend, so it works the same in dark mode (where the frame stays light). */
.card .pic img, .pdp .gallery img { mix-blend-mode: multiply; }
.line img, table.data img, .imgedit img { mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .line img, :root:not([data-theme="light"]) table.data img, :root:not([data-theme="light"]) .imgedit img { mix-blend-mode: normal; } }
:root[data-theme="dark"] .line img, :root[data-theme="dark"] table.data img, :root[data-theme="dark"] .imgedit img { mix-blend-mode: normal; }
.card .pic .badge { position: absolute; top: 8px; left: 8px; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.brand { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card .name { font-family: var(--serif); font-size: 21px; font-weight: var(--serif-weight); line-height: 1.15; }
.card .fam { font-size: 12.5px; color: var(--muted); }
.card .notes { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .shared { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.pop { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pop.hot { color: var(--accent); font-weight: 600; }
.card.soldout .pic img { opacity: .55; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; margin-bottom: 36px; }
.hero p { color: var(--muted); max-width: 560px; }
.hero .facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero .facts3 div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.hero .facts3 b { display: block; font-family: var(--serif); font-size: 26px; }
.hero .facts3 span { font-size: 12.5px; color: var(--muted); }
section.block { margin: 0 0 40px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; }
.block-head a { font-size: 14px; color: var(--accent); font-weight: 500; }
.scents { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.scents a { display: block; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 14px; }
.scents a:hover { border-color: var(--accent); }

/* ---------- categories page ---------- */
.catcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.catcard { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.catcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.catcard .catname { font-family: var(--serif); font-size: 25px; font-weight: var(--serif-weight); line-height: 1.1; }
.catcard .catdesc { font-size: 13.5px; color: var(--muted); }
.catcard .catcount { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .catcard { transition: none; } .catcard:hover { transform: none; } }

/* ---------- listing ---------- */
.listhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.listhead .lead { color: var(--muted); max-width: 720px; margin: 0; white-space: pre-line; }
.sortform { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.sortform select { width: auto; padding: 7px 10px; }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.pager span[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.pager .gap { border: 0; background: none; min-width: 16px; padding: 0 2px; }
@media (max-width: 640px) {
  .pager { gap: 4px; }
  .pager a, .pager span { min-width: 34px; height: 34px; padding: 0 6px; font-size: 13px; }
}
.brandlist { columns: 4 200px; column-gap: 24px; }
.brandlist a { display: block; padding: 4px 0; text-decoration: none; break-inside: avoid; }
.brandlist a:hover { color: var(--accent); }
.brandlist small { color: var(--muted); }

/* ---------- product page ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.pdp .gallery { background: var(--photo-bg); isolation: isolate; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; aspect-ratio: 1; position: sticky; top: 16px; }
/* photos come in any shape: always show the whole photo inside the square frame */
.pdp .gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.pdp h1 { margin: 4px 0 10px; }
.pdp .badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font-size: 14.5px; margin: 0 0 18px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.buybox { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.buybox h2 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 14px; border: 0; padding: 0; }
.size { position: relative; display: block; cursor: pointer; }
.size input { position: absolute; opacity: 0; inset: 0; }
.size span { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 14px; line-height: 1.3; background: var(--surface); font-variant-numeric: tabular-nums; }
.size span small { display: block; color: var(--muted); font-size: 12.5px; }
.size span b { font-weight: 600; }
.size input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.size input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.size input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.buyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buyrow input[type=number] { width: 84px; text-align: center; border-radius: 999px; }
.buyrow .btn { flex: 1; min-width: 200px; height: 46px; }
.buynote { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.desc { white-space: pre-line; color: var(--text); font-size: 14.5px; }
.stats-line { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }

/* ---------- content page ---------- */
.prose { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.prose img { height: auto; border-radius: 10px; }
.prose h2, .prose h3 { font-family: var(--serif); }
.prose table { border-collapse: collapse; }
.prose .tablewrap table { width: 100%; }
.prose .tablewrap td:not(:first-child), .prose .tablewrap th:not(:first-child) { text-align: right; white-space: nowrap; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; }

/* ---------- cart & checkout ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line img { width: 72px; height: 72px; object-fit: contain; background: var(--photo-bg); border: 1px solid var(--line); border-radius: 10px; }
.line .ln { font-weight: 600; text-decoration: none; }
.line .ls { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.line .qtyrow { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.line .qtyrow input { width: 72px; padding: 6px 8px; text-align: center; }
.line .lt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.shipopts { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.shipopt { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; font-variant-numeric: tabular-nums; }
.shipopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.shipopt small { display: block; color: var(--muted); font-size: 12px; }
.shipopt .free { color: var(--ok); font-weight: 600; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14.5px; font-variant-numeric: tabular-nums; margin: 0; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; text-align: right; }
.sum .tot { font-size: 19px; font-weight: 700; color: var(--text); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.sum .vat { font-size: 12.5px; }
.freebar { font-size: 13px; color: var(--muted); margin: 12px 0; }
.minorder { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); border: 1px solid var(--warn); margin: 12px 0 0; }
.freebar progress { display: block; width: 100%; height: 6px; margin-top: 6px; appearance: none; border: 0; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.freebar progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 99px; }
.freebar progress::-webkit-progress-value { background: var(--ok); border-radius: 99px; }
.freebar progress::-moz-progress-bar { background: var(--ok); border-radius: 99px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
.mini-lines { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13.5px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.testnote { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }
[data-when][hidden] { display: none; }

/* ---------- customer account ---------- */
.authwrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; max-width: 880px; margin: 8px auto 0; align-items: start; }
.authwrap.single { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
.authbox h1 { font-size: 34px; margin-top: 0; }
.authbox h2 { font-family: var(--serif); font-size: 26px; text-transform: none; letter-spacing: 0; color: var(--text); }
.authlinks { font-size: 14px; margin: 14px 0 0; }
.authlinks a, .authbox p a { color: var(--accent); }
.st-vana { background: var(--surface-2); color: var(--muted); }
.notice { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; margin: 0 0 16px; }
.notice a { color: var(--text); font-weight: 600; }

/* ---------- order page ---------- */
.status-hero { text-align: center; padding: 26px 20px; margin-bottom: 20px; }
.status-hero .icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; font-size: 26px; }
.status-hero.ok .icon { background: var(--ok-soft); color: var(--ok); }
.status-hero.warn .icon { background: var(--warn-soft); color: var(--warn); }
.status-hero.wait .icon { background: var(--accent-soft); color: var(--accent); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; font-size: 13.5px; color: var(--muted); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer.site h3 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin: 0 0 8px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast a { color: inherit; font-weight: 600; margin-left: 8px; }

/* ---------- bare layout (payment, login) ---------- */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.bare .box { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.bare .box h1 { font-size: 30px; }
.bank { border: 2px dashed var(--info); }
.bank .amount { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0 16px; }
.stack { display: grid; gap: 12px; }

/* ---------- admin ---------- */
.admin-top { background: var(--text); color: var(--bg); }
.admin-top .wrap { display: flex; align-items: center; gap: 20px; height: 54px; }
.admin-top a { color: var(--bg); text-decoration: none; font-size: 14px; opacity: .8; }
.admin-top a:hover { opacity: 1; }
.admin-top a, .admin-top form button { white-space: nowrap; flex-shrink: 0; }
.admin-top .wrap { overflow-x: auto; }
@media (max-width: 1400px) { .admin-top .wrap { gap: 10px; } .admin-top .brandmark { margin-right: 0; } }
.hometexts { max-width: 1240px; }
.hometexts .langpair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
footer.site .phonenote { margin-top: -4px; color: var(--muted); }
.langtag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--text); }
@media (max-width: 760px) { .hometexts .langpair { grid-template-columns: 1fr; } }
.admin-top a[aria-current] { opacity: 1; font-weight: 600; }
.admin-top .brandmark { font-family: var(--serif); font-size: 22px; opacity: 1; margin-right: 10px; }
.admin-top .spacer { flex: 1; }
.admin-top form button { background: none; border: 1px solid rgba(255,255,255,.3); color: var(--bg); border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 13px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .admin-top { background: #0c0b09; } }
:root[data-theme="dark"] .admin-top { background: #0c0b09; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; }
.kpi b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.alert { border-color: var(--accent); background: var(--accent-soft); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; background: var(--surface); }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
table.data td.n, table.data th.n { text-align: right; }
table.data tr:hover td { background: var(--surface-2); }
table.data a { text-decoration: none; font-weight: 500; }
table.data a:hover { color: var(--accent); }
table.data img { width: 40px; height: 40px; object-fit: contain; background: var(--photo-bg); border-radius: 6px; border: 1px solid var(--line); vertical-align: middle; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.toolbar input[type=search] { max-width: 320px; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-ootel { background: var(--surface-2); color: var(--muted); }
.st-makstud { background: var(--accent-soft); color: var(--accent); }
.st-teele_pandud { background: #e3ecf5; color: var(--info); }
.st-valmis { background: var(--ok-soft); color: var(--ok); }
.st-katkestatud { background: var(--warn-soft); color: var(--warn); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-teele_pandud { background: #1b2530; } }
:root[data-theme="dark"] .st-teele_pandud { background: #1b2530; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline small { color: var(--muted); display: block; }
.vtable input, .vtable select { padding: 6px 8px; font-size: 14px; }
.vtable input.price, .vtable input.stock { width: 90px; text-align: right; }
.vtable input[type=checkbox] { width: 18px; height: 18px; }
.vtable input.price.locked { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ladder .eur { position: relative; display: block; }
.ladder .eur input { padding-right: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.ladder .eur::after { content: "€"; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pgtable td, .pgtable th { white-space: nowrap; }
.exlist { list-style: none; margin: 0; padding: 0; }
.exlist li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.exlist li a { font-weight: 500; text-decoration: none; }
.exdiff { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; font-size: 14px; }
.catgrid label { display: flex; gap: 8px; align-items: center; }
.catgrid h3 { grid-column: 1 / -1; font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 8px 0 0; }
.imgedit { display: flex; gap: 16px; align-items: center; }
.imgedit img { width: 120px; height: 120px; object-fit: contain; background: var(--photo-bg); border: 1px solid var(--line); border-radius: 12px; }
.formbar { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 20px; display: flex; gap: 10px; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .topbar { grid-template-columns: 1fr auto auto auto; }
  .searchform { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .authwrap { grid-template-columns: 1fr; }
  .cartlink .label { display: none; }
  .hero, .pdp, .cols, .two { grid-template-columns: 1fr; }
  .pdp .gallery { position: relative; top: 0; max-width: 460px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* header: logo + account + favourites + cart must fit a 360 px phone */
  .topbar { gap: 10px 8px; }
  .logo img { width: 136px; }
  .tagline { font-size: 9.5px; letter-spacing: .12em; }
  .cartlink { height: 42px; padding: 0 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .name { font-size: 18px; }
  .card .notes { display: none; }
  .hero .facts3 b { font-size: 21px; }
  .facts { grid-template-columns: 100px 1fr; }
  .prose { padding: 18px; }
  .line { grid-template-columns: 56px 1fr; }
  .line img { width: 56px; height: 56px; }
  .line .lt { grid-column: 2; text-align: left; }
  .admin-top .wrap { gap: 12px; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .toast { transition: none; }
  .card:hover { transform: none; }
  .cartlink.bump, .wishbtn.bumped { animation: none; }
  .wishbtn svg path { transition: none; }
}

/* Admin › Külastajad */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-right: 4px; vertical-align: middle; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.live-status { font-size: 13px; color: var(--ok); margin-left: auto; }
.live-status.off { color: var(--warn); }
table.visitors td { vertical-align: top; }
table.visitors .knownname { color: var(--accent); font-weight: 600; }
.visits { max-height: 420px; overflow-y: auto; }

/* Ordering paused (Admin → Ülevaade → "Peata tellimused") */
.pausebox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0 20px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; }
.pausebox span { flex: 1 1 260px; }
.pausebox.on { border-color: var(--warn); background: var(--warn-soft); }
.admin-top a.paused-badge { background: var(--warn-soft); color: var(--text); border: 1px solid var(--warn); opacity: 1;
  font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* Admin → Juhend */
.manual { max-width: 820px; line-height: 1.6; }
.manual .lead { font-size: 16px; }
.manual h2 { margin: 40px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.manual h3 { margin: 22px 0 6px; }
.manual ol, .manual ul { padding-left: 22px; }
.manual li { margin: 4px 0; }
.manual li > ul { margin: 4px 0; }
.manual .toc { margin: 18px 0 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.manual .toc ol { columns: 2 220px; column-gap: 32px; margin: 0; }
.manual .ui { display: inline-block; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2);
  font-size: .92em; line-height: 1.5; white-space: nowrap; }
.manual .tip, .manual .warnbox { margin: 14px 0; padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: 14px; }
.manual .tip { border-left: 3px solid var(--accent); background: var(--accent-soft); }
.manual .warnbox { border-left: 3px solid var(--warn); background: var(--warn-soft); }
.manual .tablewrap { margin: 10px 0 14px; }
.manual table.data td:first-child { white-space: nowrap; }
.manual .faq dt { margin-top: 14px; font-weight: 700; }
.manual .faq dd { margin: 2px 0 0; }
.manual .totop { margin-top: 32px; }
@media (max-width: 640px) { .manual table.data td:first-child { white-space: normal; } }

/* Fonts chosen in Admin › Fondid: <html data-hfont="…" data-bfont="…">. Keys = FONTS_HEADING / FONTS_BODY in src/settings.php.
   The admin itself keeps the original fonts, except the font preview there. */
[data-hfont="cormorant"] { --serif: "Cormorant Garamond", Georgia, serif; --serif-weight: 600; }
[data-hfont="playfair"]  { --serif: "Playfair Display", Georgia, serif; --serif-weight: 600; }
[data-hfont="ebgaramond"]{ --serif: "EB Garamond", Georgia, serif; --serif-weight: 600; }
[data-hfont="lora"]      { --serif: Lora, Georgia, serif; --serif-weight: 600; }
[data-hfont="prata"]     { --serif: Prata, Georgia, serif; --serif-weight: 400; }
[data-hfont="georgia"]   { --serif: Georgia, "Times New Roman", serif; --serif-weight: 700; }
[data-hfont="palatino"]  { --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif; --serif-weight: 700; }
[data-hfont="inter"]     { --serif: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; --serif-weight: 600; }
[data-bfont="inter"]     { --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
[data-hfont="ebgaramond"], [data-bfont="raleway"] { font-variant-numeric: lining-nums; }   /* straight numbers in prices */
[data-bfont="montserrat"]{ --font-body: Montserrat, system-ui, sans-serif; }
[data-bfont="raleway"]   { --font-body: Raleway, system-ui, sans-serif; }
[data-bfont="jost"]      { --font-body: Jost, system-ui, sans-serif; }
[data-bfont="nunitosans"]{ --font-body: "Nunito Sans", system-ui, sans-serif; }
[data-bfont="system"]    { --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
[data-bfont="georgia"]   { --font-body: Georgia, "Times New Roman", serif; }

/* Admin › Fondid */
.fontform { max-width: 980px; }
.fontchoices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fontchoice { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: var(--field); }
.fontchoice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.fontchoice input { margin: 0 6px 0 0; }
.fontchoice .fname { font-size: 13px; font-weight: 600; }
.fontchoice .fsample { display: block; margin: 8px 0 4px; font-family: var(--serif); font-weight: var(--serif-weight); font-size: 26px; line-height: 1.15; }
.fontchoice .fsample.body { font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.5; }
.fontchoice small { color: var(--muted); }
.fontpreview { font-family: var(--font-body); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.fontpreview h2 { font-family: var(--serif); font-weight: var(--serif-weight); font-size: 34px; text-transform: none;
  letter-spacing: 0; color: var(--text); margin: 0 0 8px; }
.fontpreview p { color: var(--muted); max-width: 560px; margin: 0 0 14px; }
.fontpreview .card { max-width: 230px; }
