/* Medilab India — Digital Catalogue. Mobile-first. */
:root {
  --brand: #6e3032;
  --brand-ink: #4f1c22;
  --brand-soft: #f6eced;
  --brand-line: #e8d6d8;
  --gold: #b8914a;
  --wa: #1c8f4c;
  --wa-ink: #146b39;
  --bg: #f8f5f1;
  --surface: #ffffff;
  --text: #1e1a1b;
  --muted: #6d6466;
  --line: #ebe5e0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(40, 20, 20, .05), 0 4px 16px rgba(40, 20, 20, .05);
  --gutter: 16px;
  --top-h: 60px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.main { outline: none; min-height: 70vh; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar__inner { height: var(--top-h); max-width: 1120px; margin: 0 auto; padding: 0 8px 0 var(--gutter); display: flex; align-items: center; gap: 8px; }
.brand img { height: 34px; width: auto; }
.topbar__title { flex: 1; min-width: 0; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.is-sub .brand { display: none; }
.topbar.is-sub .topbar__inner { padding-left: 4px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--brand-ink); }
.icon-btn:active { background: var(--brand-soft); }
.topbar__search { margin-left: auto; }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a.is-active { color: var(--brand); }
.tabbar a.is-active svg { stroke-width: 2.2; }
.tabbar a[data-tab="contact"] { color: var(--wa); }

/* ---------- Product action bar (replaces tab bar on product pages) ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31;
  display: flex; gap: 10px; align-items: center;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.actionbar .btn--wa { flex: 1; min-width: 0; padding: 0 12px; white-space: nowrap; }
body.has-actionbar .tabbar { display: none; }
body.has-actionbar { padding-bottom: calc(76px + var(--safe-b)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:active { background: var(--wa-ink); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--brand-ink); border: 1px solid var(--brand-line); }
.btn--square { width: 52px; padding: 0; flex: none; }
.btn--block { width: 100%; }
.wa-icon { fill: currentColor; stroke: none; }

/* ---------- Sections ---------- */
.section { margin-top: 32px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { font-size: 20px; font-weight: 700; }
.section__sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.link-more { color: var(--brand); font-weight: 600; font-size: 14.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; padding: 6px 0; }
.link-more svg { width: 18px; height: 18px; }

/* ---------- Home hero ---------- */
.hero { padding: 20px 0 4px; }
.hero__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero h1 { font-size: 22px; font-weight: 700; color: var(--brand-ink); }
.hero__stats { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hero p { margin: 2px 0 14px; color: var(--muted); font-size: 14.5px; }
.searchbox {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 48px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); color: var(--muted); font-size: 15px; text-align: left;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(40, 20, 20, .04);
  transition: border-color .15s;
}
.searchbox:hover, .searchbox:active { border-color: var(--brand-line); }
.searchbox svg { width: 20px; height: 20px; color: var(--muted); }

/* ---------- Spotlight (data/highlights.json) ---------- */
.spot-wrap { margin-top: 20px; }
.spots { display: grid; gap: 12px; }
.spots--multi {
  grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.spots--multi::-webkit-scrollbar { display: none; }
.spots--multi > * { scroll-snap-align: start; }
.spot {
  display: flex; align-items: stretch; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%); color: #fff;
  box-shadow: var(--shadow); transition: transform .12s ease;
}
.spot:active { transform: scale(.99); }
.spot__img { flex: 0 0 72px; background: #fff; padding: 6px; display: grid; place-items: center; }
.spot__img img { width: 100%; height: 100%; max-height: 72px; object-fit: contain; }
.spot__body { flex: 1; min-width: 0; padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px; }
.spot__label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #efd9b0; }
.spot__title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.spot__text { margin: 0; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .spots--multi { grid-auto-columns: 48%; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.step { padding: 10px 6px; text-align: center; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.step + .step { border-left: 1px solid var(--line); }
.step span { display: block; color: var(--text); font-weight: 600; font-size: 13px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Category card */
.cat {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .12s ease;
}
.cat:active { transform: scale(.98); }
.cat__img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.cat__img img { width: 100%; height: 100%; object-fit: contain; }
.cat__body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat__name { font-weight: 650; font-size: 15px; line-height: 1.3; }
.cat__count { font-size: 13px; color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 2px; margin-top: auto; }
.cat__count svg { width: 16px; height: 16px; }

/* Category list rows (Categories tab) */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.row:active { background: #fdfbfa; }
.row__img { width: 72px; height: 72px; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 6px; }
.row__img img { width: 100%; height: 100%; object-fit: contain; }
.row__body { flex: 1; min-width: 0; }
.row__name { font-weight: 650; font-size: 16px; }
.row__blurb { font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__count { font-size: 12.5px; font-weight: 600; color: var(--brand); margin-top: 4px; }
.row > svg { color: var(--muted); width: 20px; height: 20px; }

/* Product card */
.card {
  position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  content-visibility: auto; contain-intrinsic-size: auto 280px;
  transition: transform .12s ease;
}
.card:active { transform: scale(.98); }
.card__img { aspect-ratio: 1; background: #fff; padding: 10px; display: grid; place-items: center; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__body { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 14px; font-weight: 550; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card__cta { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 2px; }
.card__cta svg { width: 15px; height: 15px; }
.badge { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--brand); color: #fff; }
.badge--rent { background: #2d5f8a; }
.badge--feat { background: var(--gold); }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #c9bfc0; }
.noimg svg { width: 40px; height: 40px; }

/* Horizontal scroller */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 640px) { .scroller { grid-auto-columns: 28%; } }
@media (min-width: 960px) { .scroller { grid-auto-columns: 19%; } }

/* ---------- Page heading ---------- */
.pagehead { padding: 20px 0 4px; }
.pagehead h1 { font-size: 24px; font-weight: 700; }
.pagehead p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--brand); font-weight: 500; }

/* Chips */
.chips-bar {
  position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 20;
  background: var(--bg); margin: 12px calc(-1 * var(--gutter)) 12px; padding: 10px var(--gutter);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.chips-bar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 12px -10px rgba(0, 0, 0, .2); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text);
}
.chip small { color: var(--muted); font-size: 12px; font-weight: 500; }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.is-on small { color: rgba(255, 255, 255, .8); }
.chips--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.result-count { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }

/* ---------- Product page ---------- */
.pd { padding-bottom: 8px; }
@media (min-width: 900px) { .pd { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 24px; align-items: start; } .pd__gallery { position: sticky; top: calc(var(--top-h) + 16px); } }
.gallery { position: relative; margin: 0 calc(-1 * var(--gutter)); background: #fff; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .gallery { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; } }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; display: grid; place-items: center; padding: 20px; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; background: rgba(30, 26, 27, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.gallery__dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 12px; }
.gallery__dots i { width: 6px; height: 6px; border-radius: 3px; background: #d9d0d1; transition: width .2s, background-color .2s; }
.gallery__dots i.is-on { width: 18px; background: var(--brand); }
.gallery__zoom { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand-ink); }
.gallery__zoom svg { width: 20px; height: 20px; }
.thumbs { display: none; }
@media (min-width: 900px) {
  .thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .thumbs button { width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--line); background: #fff; padding: 4px; }
  .thumbs button.is-on { border-color: var(--brand); }
  .thumbs img { width: 100%; height: 100%; object-fit: contain; }
}

.pd__info { padding-top: 18px; }
.pd__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.tag--rent { background: #e7f0f7; color: #2d5f8a; }
.tag--new { background: #fbf1df; color: #8a6420; }
.pd h1 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.pd__meta { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.pd__meta b { color: var(--text); font-weight: 600; }

.pd__note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #eaf5ee; color: #24533a; font-size: 14px; line-height: 1.45; }
.pd__note svg { color: var(--wa); width: 20px; height: 20px; margin-top: 1px; }

.opts { margin-top: 20px; }
.opts h3 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.opts .chips--wrap { margin-bottom: 14px; }
.opts .chip { height: 34px; cursor: default; }

.panel { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.panel > h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.prose { font-size: 15px; line-height: 1.65; color: #3a3234; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose h3 { font-size: 16px; margin: 20px 0 8px; color: var(--text); }
.prose h4 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 6px 0; padding-left: 2px; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--text); font-weight: 650; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; max-width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 90px; }
.prose th, .prose tr:first-child td strong { background: #faf7f5; }
.prose--clamp { max-height: 340px; overflow: hidden; position: relative; }
.prose--clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--surface)); }
.readmore { margin-top: 10px; width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--brand-line); color: var(--brand); font-weight: 600; font-size: 15px; }
.empty-desc { color: var(--muted); font-size: 15px; }

/* ---------- Search ---------- */
.search-field {
  position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 20;
  background: var(--bg); margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) 12px;
}
.search-field label { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--brand-line); }
.search-field label:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.search-field svg { color: var(--brand); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.search-clear svg { width: 20px; height: 20px; color: var(--muted); }
.hint-title { font-size: 14px; font-weight: 600; color: var(--muted); margin: 18px 0 10px; }

/* ---------- Empty / contact ---------- */
.empty { text-align: center; padding: 40px 12px; }
.empty svg { width: 48px; height: 48px; color: var(--brand-line); margin: 0 auto 12px; }
.empty h2 { font-size: 18px; }
.empty p { color: var(--muted); margin: 6px 0 18px; font-size: 15px; }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px; box-shadow: var(--shadow); }
.contact h2 { font-size: 19px; }
.contact > p { color: var(--muted); font-size: 14.5px; margin: 6px 0 16px; }
.contact .btn + .btn { margin-top: 10px; }
.contact__list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.contact__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__list svg { color: var(--brand); width: 20px; height: 20px; margin-top: 1px; }
.contact__list small { display: block; color: var(--muted); font-size: 12.5px; }
.contact__list a { color: var(--brand-ink); font-weight: 600; }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 28px 16px 20px; }
.foot img { height: 28px; width: auto; margin: 0 auto 8px; opacity: .9; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lightbox__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track div { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 12px; touch-action: pan-x pinch-zoom; }
.lightbox__track img { max-width: 100%; max-height: 100%; object-fit: contain; }
body.no-scroll { overflow: hidden; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70; background: #2a2224; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Skeletons ---------- */
.sk { background: linear-gradient(90deg, #efe9e4 0%, #f7f3ef 50%, #efe9e4 100%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; border-radius: var(--radius); }
.sk--hero { height: 120px; margin: 16px 0 32px; border-radius: 20px; }
.sk--card { aspect-ratio: 3 / 4; }
.sk--line { height: 18px; border-radius: 6px; margin: 10px 0; }
@keyframes sk { to { background-position: -200% 0; } }

.fade-in { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Desktop niceties */
@media (min-width: 900px) {
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 28px; }
  .hero .searchbox { max-width: 560px; }
  .pagehead h1 { font-size: 30px; }
  .pd h1 { font-size: 28px; }
  .pd__info { padding-top: 0; }
  .rows { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1152px) {
  .actionbar { padding-left: calc((100vw - 1120px) / 2 + var(--gutter)); padding-right: calc((100vw - 1120px) / 2 + var(--gutter)); }
}
