/* ShopBunny — classic and elegant: pink-tinted white ground, deep rose for the brand,
   a refined Hebrew serif for headings, a clean sans for everything else. */
:root {
  --bg: #fcf8f9;
  --surface: #ffffff;
  --blush: #f6e7ec;
  --blush-2: #efd6df;
  --line: #eedde3;
  --ink: #2a1f24;
  --muted: #7a6870;
  --rose: #b4587a;
  --rose-deep: #7d2f4f;
  --on-rose: #ffffff;
  --gold: #a88a5c;
  --good: #2d6a4f;
  --good-bg: #e3f1ea;
  --warn: #8a5a00;
  --warn-bg: #fbefd2;
  --bad: #a4302a;
  --bad-bg: #f9e1df;
  --font-display: "Bellefair", "Frank Ruhl Libre", "David", serif;
  --font-body: "Assistant", "Segoe UI", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(125 47 79 / .06), 0 6px 20px rgb(125 47 79 / .06);
  --quiet-bg: #f1ecee;
  --th-bg: #fdfafb;
  --champagne: #f5ebdc;
  --sale: #b8325a;
  --pattern: rgb(125 47 79 / .085);
  --media-filter: none;
  color-scheme: light;
}

/* Dark: near-black with a plum undertone, pink as the accent. Follows the phone setting unless the
   viewer picked a theme with the header button (stored as data-theme on <html>). Keep both blocks in sync. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141013; --surface: #1e171c; --blush: #3a2230; --blush-2: #4a2a3c; --line: #33252e;
    --ink: #f5e9ef; --muted: #b7a3ad; --rose: #d97a9f; --rose-deep: #ee9fbe; --on-rose: #1a0f15; --gold: #cdb084;
    --good: #7fd3a8; --good-bg: #183428; --warn: #f0c56e; --warn-bg: #3a2e12; --bad: #ff9a90; --bad-bg: #42201d;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 20px rgb(0 0 0 / .35);
    --quiet-bg: #2a2127; --th-bg: #231a20; --champagne: #2e261d; --sale: #e2577f; --pattern: rgb(238 159 190 / .07); --media-filter: brightness(1.35) saturate(.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141013; --surface: #1e171c; --blush: #3a2230; --blush-2: #4a2a3c; --line: #33252e;
  --ink: #f5e9ef; --muted: #b7a3ad; --rose: #d97a9f; --rose-deep: #ee9fbe; --on-rose: #1a0f15; --gold: #cdb084;
  --good: #7fd3a8; --good-bg: #183428; --warn: #f0c56e; --warn-bg: #3a2e12; --bad: #ff9a90; --bad-bg: #42201d;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 20px rgb(0 0 0 / .35);
  --quiet-bg: #2a2127; --th-bg: #231a20; --champagne: #2e261d; --sale: #e2577f; --pattern: rgb(238 159 190 / .07); --media-filter: brightness(1.35) saturate(.9);
  color-scheme: dark;
}

/* Background pattern: tiny outline icons (fashion + bunny), WhatsApp-style. The SVG is used as a mask so
   its color comes from --pattern and follows the theme. Cards stay solid, so it only shows around them. */
.bg-pattern { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pattern);
  -webkit-mask: url("../img/pattern.svg") 0 0 / 260px 260px repeat; mask: url("../img/pattern.svg") 0 0 / 260px 260px repeat; }

.theme-toggle { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--rose-deep); display: grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { background: var(--blush); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* layout classes (.stack etc.) must not un-hide elements */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--rose-deep); margin: 0; text-wrap: balance; line-height: 1.2; }
h1 { font-size: clamp(30px, 6vw, 44px); }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.num, td { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.container.narrow { max-width: 640px; }
main.page { padding-block: 24px 40px; display: grid; gap: 24px; }
/* Phones: leave room under the footer for the fixed bottom tab bar, so nothing hides behind it. */
@media (max-width: 759px) { body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); } }
/* ...and keep footer links clear of the round accessibility button (left side in RTL): they wrap instead. */
@media (max-width: 759px) { .footer .container { padding-left: max(72px, env(safe-area-inset-left, 0px)); } }
.stack { display: grid; gap: 14px; }
.stack-sm { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* ---------- header ---------- */
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header .container { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--rose-deep); text-decoration: none !important; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.brand-word { font-family: var(--font-display); font-size: 25px; letter-spacing: .02em; line-height: 1; }
.brand-word small { display: block; font-family: var(--font-body); font-size: 10.5px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; margin-top: 3px; }
.top-nav { display: none; gap: 4px; margin-inline-start: auto; align-items: center; }
@media (min-width: 760px) { .top-nav { display: flex; } }
.top-nav a, .top-nav button { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer; }
.top-nav a:hover, .top-nav button:hover { background: var(--blush); text-decoration: none; }
.top-nav a.on { color: var(--rose-deep); background: var(--blush); }
.mobile-user { margin-inline-start: auto; }
@media (min-width: 760px) { .mobile-user { display: none; } }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--blush); display: grid; place-items: center; color: var(--rose-deep); font-weight: 700; font-size: 14px; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu { position: absolute; inset-inline-end: 0; top: 42px; min-width: 200px; box-shadow: var(--shadow); z-index: 25; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }

/* bottom tabs on phones */
.tabbar { position: fixed; inset: auto 0 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
@media (min-width: 760px) { .tabbar { display: none; } }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: none; position: relative; }
.tabbar a.on { color: var(--rose-deep); }
.tabbar svg { width: 23px; height: 23px; }
.count { background: var(--rose); color: var(--on-rose); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 6px; min-width: 18px; text-align: center; line-height: 18px; }
.tabbar .count { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); }

/* ---------- elements ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; min-width: 0; }
.card.flat { box-shadow: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--rose-deep); background: var(--rose-deep); color: var(--on-rose);
  font-weight: 700; padding: 12px 22px; border-radius: 999px; cursor: pointer; text-decoration: none !important; line-height: 1.2; }
.btn:hover { background: var(--rose); border-color: var(--rose); }
.btn.ghost { background: transparent; color: var(--rose-deep); }
.btn.ghost:hover { background: var(--blush); }
.btn.quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--rose-deep); font-weight: 700; cursor: pointer; }
.back { font-weight: 600; font-size: 14.5px; }
.back::before { content: "→ "; }

.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); white-space: nowrap; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.quiet { background: var(--quiet-bg); color: var(--muted); }

.flash { border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }
.flash.success { background: var(--good-bg); color: var(--good); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.note { background: var(--blush); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; color: var(--ink); }
.note.warn { background: var(--warn-bg); }
.note b { color: var(--rose-deep); }
.note.warn b { color: var(--warn); }

.field { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.field small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=search], select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 11px 13px; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); outline: none; }
textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--rose-deep); }

.sum { display: grid; gap: 6px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 700; font-size: 18px; }

/* ---------- hero & shops ---------- */
.hero { display: grid; gap: 14px; padding: 28px 24px; border-radius: 24px; background:
  radial-gradient(120% 140% at 100% 0%, var(--blush-2) 0%, transparent 55%), var(--blush); }
.hero p { max-width: 46ch; color: var(--ink); }
/* ---------- banners ---------- */
.banners { display: grid; gap: 8px; min-width: 0; }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.banner-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none !important; }
.banner.image_only img { width: 100%; aspect-ratio: 10 / 3; max-width: 100%; object-fit: cover; }
.banner.image_text { display: flex; align-items: stretch; min-height: 132px; background: var(--surface); border: 1px solid var(--line); }
.banner.image_text.no-image, .banner.image_only.no-image { background: radial-gradient(120% 160% at 0% 100%, var(--blush-2) 0%, transparent 60%), var(--blush); border: 0; }
.banner.no-image.style-plum { background: radial-gradient(120% 160% at 0% 100%, color-mix(in srgb, var(--rose) 55%, transparent) 0%, transparent 65%), var(--rose-deep); color: var(--on-rose); }
.banner.no-image.style-plum .banner-copy b, .banner.no-image.style-plum .banner-cta { color: var(--on-rose); }
.banner.no-image.style-champagne { background: radial-gradient(120% 160% at 0% 100%, color-mix(in srgb, var(--gold) 30%, transparent) 0%, transparent 60%), var(--champagne); }
.banner-art { flex: none; width: 34%; max-width: 150px; display: grid; place-items: center; color: var(--rose-deep); }
.style-plum .banner-art { color: var(--on-rose); opacity: .9; }
.style-champagne .banner-art { color: var(--gold); }
.banner-icon { width: 64px; height: 64px; }
.banner-img { width: 38%; max-width: 220px; flex: none; object-fit: cover; }
.banner-copy { display: grid; align-content: center; gap: 4px; padding: 16px 18px; min-width: 0; flex: 1; }
.banner-copy b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--rose-deep); line-height: 1.2; }
.banner-copy span { font-size: 14.5px; }
.banner-cta { justify-self: start; margin-top: 6px; font-weight: 700; color: var(--rose-deep); border-bottom: 1.5px solid currentColor; font-size: 14px !important; }
.banner-dots { display: flex; justify-content: center; gap: 6px; }
.banner-dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.banner-dots button[aria-current="true"] { background: var(--rose); width: 18px; border-radius: 4px; }

.delivery-line { font-size: 17px; color: var(--ink); }
.delivery-line b { color: var(--rose-deep); }
.promise { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; font-weight: 600; color: var(--rose-deep); }
.promise span::before { content: "◆"; font-size: 8px; color: var(--gold); margin-inline-end: 8px; vertical-align: middle; }

.shop-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shop-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); text-decoration: none !important; transition: border-color .15s; }
.shop-card:hover { border-color: var(--rose); }
.monogram { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; color: #fff; overflow: hidden; }
.monogram img { width: 100%; height: 100%; object-fit: cover; }
.monogram.lg { width: 72px; height: 72px; font-size: 32px; }

.chips-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips-nav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.chips-nav a.on { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--on-rose); }

/* ---------- products ---------- */
.product-grid { display: grid; gap: 18px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { display: grid; gap: 8px; color: var(--ink); text-decoration: none !important; min-width: 0; }
.price-tag { display: inline-flex; gap: 6px; align-items: baseline; }
.price-tag b { color: var(--ink); font-weight: 600; }
.sale { color: var(--sale) !important; }
.was { color: var(--muted); font-size: .9em; }
.sale-badge { background: var(--sale); color: #fff; font-weight: 700; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; }
.deal-strip { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.deal-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; min-width: 0; }
.deal-card:hover { border-color: var(--sale); }
.deal-pct { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sale); color: #fff;
  font-family: var(--font-display); font-size: 21px; }
.deal-body { display: grid; gap: 2px; min-width: 0; }
.product-card .name { font-weight: 600; line-height: 1.35; }
.product-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.product-card.off { opacity: .5; }
.media { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 14px; overflow: hidden; display: grid; place-items: center; position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media svg { width: 46%; height: 46%; filter: var(--media-filter); }
.media .tag { position: absolute; top: 10px; inset-inline-start: 10px; }
.thumb { width: 56px; flex: none; aspect-ratio: 4 / 5; border-radius: 10px; }
.thumb.xs { width: 40px; border-radius: 8px; }

.product-page { display: grid; gap: 24px; }
@media (min-width: 760px) { .product-page { grid-template-columns: 1fr 1fr; align-items: start; } }
.price { font-size: 22px; font-weight: 700; color: var(--ink); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span { display: grid; place-items: center; min-width: 52px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; background: var(--surface); }
.sizes input:checked + span { border-color: var(--rose-deep); background: var(--blush); color: var(--rose-deep); }
.sizes input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

/* ---------- lists / items ---------- */
.item { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.item + .item { border-top: 1px solid var(--line); padding-top: 12px; }
.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; }
.list-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; }
.list-link:hover { border-color: var(--rose); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps div { display: grid; gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.steps div::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.steps div.on { color: var(--rose-deep); font-weight: 700; }
.steps div.on::before { background: var(--rose); }

.addr-list { display: grid; gap: 8px; }
.addr { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.addr input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--rose-deep); flex: none; }
.addr-body { display: grid; gap: 2px; min-width: 0; }
.addr:has(input:checked) { border-color: var(--rose-deep); background: var(--blush); }
.addr.off { opacity: .55; cursor: not-allowed; }
fieldset.new-address { border: 0; padding: 0; margin: 0; min-width: 0; }
.eta-box { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 18px 16px; border-radius: var(--radius);
  background: var(--rose-deep); color: var(--on-rose); }
.eta-box b { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.1; }
.eta-box .muted { color: inherit; opacity: .8; }
.eta-box.quiet { background: var(--blush); color: var(--ink); }
.eta-box.quiet b { color: var(--rose-deep); font-size: 32px; }
.live-map { padding: 0; overflow: hidden; gap: 0; }
.map-canvas { height: 300px; max-width: 100%; background: var(--blush); }
.map-placeholder { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.map-status { padding: 10px 14px; border-top: 1px solid var(--line); }
.nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.stop { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rose-deep); color: var(--on-rose); font-weight: 700; font-size: 14px; flex: none; }
.subpick { background: var(--blush); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 8px; }

/* ---------- admin ---------- */
.admin-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.admin-nav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.admin-nav a.on { background: var(--rose-deep); color: var(--on-rose); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.kpi span { color: var(--muted); font-size: 14px; }
.kpi b { font-family: var(--font-display); font-weight: 400; font-size: 32px; color: var(--rose-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi.alert b { color: var(--warn); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { text-align: start; font-size: 12.5px; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--th-bg); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td select { width: auto; padding: 6px 10px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.late { color: var(--bad); font-weight: 700; }

.footer { border-top: 1px solid var(--line); padding-block: 22px 26px; color: var(--muted); font-size: 14px; background: var(--bg); }
.footer .container { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--rose-deep); }

/* Legal pages */
.legal { display: grid; gap: 14px; line-height: 1.75; }
.legal h2 { font-size: 21px; margin-top: 8px; }
.legal ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal .draft { background: var(--warn-bg); color: var(--ink); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }

.login-box { max-width: 420px; margin: 24px auto; text-align: center; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink); text-decoration: none !important; }
.gbtn:hover { border-color: var(--rose); }
.dev-box { border: 1.5px dashed var(--gold); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; text-align: start; }

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

/* ---------- accessibility widget & modes ---------- */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--rose-deep); color: var(--on-rose); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
main.page:focus { outline: none; }
.a11y { position: fixed; z-index: 40; inset-inline-end: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) { .a11y { bottom: 22px; } }
.a11y-toggle { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--rose-deep); color: var(--on-rose); display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / .22); }
.a11y-toggle svg { width: 26px; height: 26px; }
.a11y-panel { position: absolute; bottom: 56px; inset-inline-end: 0; width: min(290px, calc(100vw - 32px)); max-height: 65vh; overflow-y: auto; box-shadow: var(--shadow); gap: 8px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 2px; }
.a11y-step { width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.a11y-option { text-align: start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.a11y-option[aria-pressed="true"] { background: var(--rose-deep); color: var(--on-rose); border-color: var(--rose-deep); }
.a11y-option[aria-pressed="true"]::before { content: "✓ "; }

main.page, .footer { zoom: var(--a11y-zoom, 1); }
:root.a11y-contrast.a11y-contrast { --bg: #ffffff; --surface: #ffffff; --ink: #000000; --muted: #1f1f1f; --line: #4a4a4a; --blush: #f2dde6; --blush-2: #e9c7d5;
  --rose: #7a1440; --rose-deep: #5a0f30; --on-rose: #ffffff; --gold: #5c4320; --pattern: transparent; --sale: #8a0f35; color-scheme: light; }
html.a11y-contrast .card, html.a11y-contrast .shop-card, html.a11y-contrast .list-link, html.a11y-contrast input,
html.a11y-contrast select, html.a11y-contrast textarea { border-width: 2px; border-color: #000; }
html.a11y-grayscale :is(.site-header, main.page, .footer, .tabbar) { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid var(--rose); outline-offset: 2px; }
html.a11y-readable, html.a11y-readable * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .02em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M5 2l20 16H14l6 12-4 2-6-12-5 8z' fill='%23000' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") 5 2, auto !important; }
html.a11y-spacing main.page, html.a11y-spacing .footer { line-height: 2 !important; }
html.a11y-spacing main.page * { line-height: inherit; }

/* ---------- hopping bunny (static/js/bunny.js) ---------- */
.bunny { position: absolute; left: 0; top: 0; z-index: 15; pointer-events: none; color: var(--rose-deep); opacity: 0; will-change: transform; }
.bunny.on { opacity: 1; transition: opacity .2s; }
.bunny-art { --face: 1; transform: scaleX(var(--face)); transform-origin: 50% 100%; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .12)); }
.bunny-art { position: relative; width: 35px; height: 44px; }
.bunny img { display: none; position: absolute; bottom: 0; left: 50%; max-width: none; }  /* one pose at a time */
.bunny[data-pose="sit"] .p-sit, .bunny[data-pose="sit2"] .p-sit2, .bunny[data-pose="jump"] .p-jump,
.bunny[data-pose="front"] .p-front, .bunny[data-pose="eat1"] .p-eat1, .bunny[data-pose="eat2"] .p-eat2,
.bunny[data-pose="eat3"] .p-eat3 { display: block; }
.bunny .p-front, .bunny [class^="p-eat"] { transform: scaleX(var(--face)); }  /* facing her: never mirrored */
html.a11y-still .bunny { display: none; }

/* ---------- "install the app" strip (partials/install_banner.html) ---------- */
.install-bar { background: var(--rose-deep); color: var(--on-rose); }
.install-inner { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.install-icon img { width: 36px; height: 36px; border-radius: 9px; display: block; background: #fff; }
.install-text { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.35; }
.install-text b { font-weight: 700; }
.install-text .small { opacity: .9; }
.install-bar .btn { background: var(--on-rose); color: var(--rose-deep); border-color: var(--on-rose); flex: none; }
.install-close { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: inherit;
  font-size: 16px; cursor: pointer; opacity: .85; }
.install-close:hover { background: rgb(255 255 255 / .15); opacity: 1; }

/* ---------- bell & notifications ---------- */
.bell { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--rose-deep); display: grid; place-items: center; text-decoration: none !important; }
.bell svg { width: 19px; height: 19px; }
.bell .count { position: absolute; top: -4px; inset-inline-end: -4px; }
.notice-list { display: grid; gap: 8px; }
.notice { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none !important; }
.notice.unread { border-color: var(--rose); background: var(--blush); }
.notice b { color: var(--rose-deep); }
.push-card[hidden] { display: none !important; }

/* ---------- hours & sizes ---------- */
.hours summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.hours summary::-webkit-details-marker { display: none; }
.hours .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.hours .dot.on { background: var(--good); }
.hours-table { min-width: 0; width: auto; margin-top: 6px; font-size: 14px; background: transparent; }
.hours-table td { padding: 3px 0 3px 18px; border: 0; }
.sizes .size-out span { text-decoration: line-through; color: var(--muted); background: var(--quiet-bg); cursor: not-allowed; }
.size-toggles { display: flex; flex-wrap: wrap; gap: 4px; }
.size-toggles button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 2px 8px; font-size: 13px; cursor: pointer; }
.size-toggles button[aria-pressed="false"] { text-decoration: line-through; color: var(--bad); background: var(--bad-bg); border-color: var(--bad-bg); }
.hours-form { display: grid; gap: 6px; }
.hours-form .hrow { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.hours-form input[type=time] { padding: 6px 4px; min-width: 0; width: 100%; font-size: 14px; }
.hours-form .check { gap: 4px; }

/* ---------- search & gallery ---------- */
.searchbar { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 5px; padding-inline-start: 16px; }
.searchbar input { border: 0; padding: 8px 0; background: transparent; flex: 1; min-width: 0; }
.searchbar input:focus { outline: none; }
.searchbar:focus-within { border-color: var(--rose); }
.gallery { display: grid; gap: 8px; min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; max-width: 100%; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: left; color: var(--rose); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }

.consent { position: fixed; inset: auto 0 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .08);
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.consent-inner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-block: 12px; }
.consent-inner > .grow, .consent-choices { flex-basis: 100%; }
.consent .check { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.consent .check input { margin-top: 4px; accent-color: var(--rose-deep); }
.consent-buttons { flex-wrap: wrap; gap: 8px; }
