/*
 * MyLocal — public design system.
 *
 * One stylesheet for the booking side of the site (home, categories,
 * services, checkout, account). The directory pages add directory.css on top.
 * Bootstrap 5.3 is loaded first for its grid, utilities and JS components;
 * everything visual — colour, type, spacing, every component — is set here.
 *
 * Rules this file keeps:
 *   - every interactive element is at least 44px tall on a phone;
 *   - text colours are 4.5:1 or better on the surface they sit on;
 *   - no component sets horizontal padding on .container (see .section).
 */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6474;
  --line: #e6e8ec;
  --line-2: #d5d9e0;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-tint: #eef7f5;

  --brand: #0f766e;
  --brand-ink: #0b5c56;
  --brand-soft: #e3f3f0;
  --brand-ring: rgba(15, 118, 110, .28);

  --star: #0f172a;
  --success: #15803d;
  --success-soft: #e8f6ec;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #a15c07;
  --warn-soft: #fff4e0;
  --info: #1d4ed8;
  --info-soft: #e8efff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .14);

  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-link-color: var(--brand-ink);
  --bs-link-color-rgb: 11, 92, 86;
  --bs-link-hover-color: var(--brand);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 15, 118, 110;
  --bs-focus-ring-color: var(--brand-ring);
}

/* ---------------------------------------------------------------- base -- */

html { scroll-padding-top: calc(var(--stick, var(--header-h)) + 16px); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  /* rem, not px: on 2560px and 4K screens the root size grows (directory.css) and this must grow with it */
  font-size: .9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 991.98px) { body { padding-bottom: 64px; } }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
h1, .h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -.025em; }
h2, .h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); letter-spacing: -.02em; }
h3, .h3 { font-size: 1.125rem; }
p { color: var(--ink-2); }
a { color: var(--brand-ink); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
img { max-width: 100%; }
::selection { background: var(--brand-soft); }

:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1200px; }
@media (max-width: 575.98px) { .container { padding-left: 16px; padding-right: 16px; } }
/* Tablets and small laptops: wider side margins than a phone's, not Bootstrap's 12px. */
@media (min-width: 576px) and (max-width: 1239.98px) { .container { padding-left: 24px; padding-right: 24px; } }

.section { padding-block: 40px; }
.section-sm { padding-block: 24px; }
.section-soft { background: var(--bg-soft); }
@media (min-width: 992px) { .section { padding-block: 56px; } }

.muted { color: var(--muted) !important; }
.small-muted { color: var(--muted); font-size: .875rem; }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-ink);
}
.visually-hidden-focusable:not(:focus) { position: absolute !important; }

/* -------------------------------------------------------------- buttons -- */

.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 10px;
  --bs-btn-padding-y: .625rem;
  --bs-btn-padding-x: 1.125rem;
  --bs-btn-font-size: .95rem;
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --bs-btn-padding-y: .4rem; --bs-btn-padding-x: .8rem; --bs-btn-font-size: .875rem; min-height: 36px; }
@media (max-width: 991.98px), (pointer: coarse) { .btn-sm { min-height: 44px; } }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.5rem; --bs-btn-font-size: 1rem; min-height: 52px; }

.btn-primary, .btn-brand {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-ink); --bs-btn-hover-border-color: var(--brand-ink); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-ink); --bs-btn-active-border-color: var(--brand-ink);
  --bs-btn-disabled-bg: #9cc9c3; --bs-btn-disabled-border-color: #9cc9c3; --bs-btn-disabled-color: #fff;
}
.btn-dark, .btn-ink {
  --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-color: #fff;
  --bs-btn-hover-bg: #1e293b; --bs-btn-hover-border-color: #1e293b; --bs-btn-hover-color: #fff;
}
.btn-outline-primary, .btn-outline-brand {
  --bs-btn-color: var(--brand-ink); --bs-btn-border-color: var(--line-2); --bs-btn-bg: #fff;
  --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-border-color: var(--brand); --bs-btn-hover-color: var(--brand-ink);
  --bs-btn-active-bg: var(--brand-soft); --bs-btn-active-border-color: var(--brand); --bs-btn-active-color: var(--brand-ink);
}
.btn-outline-secondary, .btn-light {
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line-2); --bs-btn-bg: #fff;
  --bs-btn-hover-bg: var(--bg-soft); --bs-btn-hover-border-color: var(--line-2); --bs-btn-hover-color: var(--ink);
}
.btn-link { --bs-btn-color: var(--brand-ink); --bs-btn-hover-color: var(--brand); font-weight: 600; text-decoration: none; }
.btn-whatsapp { --bs-btn-bg: #128c4a; --bs-btn-border-color: #128c4a; --bs-btn-color: #fff; --bs-btn-hover-bg: #0d7038; --bs-btn-hover-color: #fff; }
.btn-danger { --bs-btn-bg: var(--danger); --bs-btn-border-color: var(--danger); }
.btn-outline-danger { --bs-btn-color: var(--danger); --bs-btn-border-color: #f1b8b2; --bs-btn-hover-bg: var(--danger-soft); --bs-btn-hover-color: var(--danger); --bs-btn-hover-border-color: var(--danger); }

.btn-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 999px;
  display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.btn-icon:hover { background: var(--bg-soft); color: var(--ink); }

/* ---------------------------------------------------------------- forms -- */

.form-label { font-weight: 600; font-size: .875rem; color: var(--ink); margin-bottom: .375rem; }
.form-control, .form-select {
  min-height: 48px; border-radius: 10px; border-color: var(--line-2); font-size: 1rem; color: var(--ink);
}
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
textarea.form-control { min-height: 96px; }
.form-text { color: var(--muted); }
.form-check-input { width: 1.2em; height: 1.2em; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--brand-ring); border-color: var(--brand); }
.invalid-feedback { font-weight: 500; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .form-control { padding-left: 42px; }

.alert { border-radius: var(--radius); border: 0; font-weight: 500; }
.alert-success { background: var(--success-soft); color: #14532d; }
.alert-danger { background: var(--danger-soft); color: #7a1610; }
.alert-warning { background: var(--warn-soft); color: #6b3d05; }
.alert-info { background: var(--info-soft); color: #1e3a8a; }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; flex-shrink: 0; min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 1.05rem;
}
.brand-mark .dot { color: #5eead4; }
.brand small { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: -2px; }

.loc-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 240px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); font-weight: 600; font-size: .9rem; text-align: left;
}
.loc-btn:hover { border-color: var(--line-2); background: var(--bg-soft); }
.loc-btn .bi-geo-alt-fill { color: var(--brand); }
.loc-btn .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.search-box { position: relative; flex: 1 1 auto; max-width: 520px; }
.search-box .form-control {
  min-height: 46px; padding-left: 44px; border-radius: 10px; background: var(--bg-soft); border-color: transparent;
}
.search-box .form-control:focus { background: #fff; border-color: var(--brand); }
.search-box > .bi-search { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 1050; max-height: 70vh; overflow: auto;
}
.suggest[hidden] { display: none; }
.suggest h6 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 10px 4px; }
.suggest a, .suggest .opt {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none;
}
.suggest a:hover, .suggest a[aria-selected="true"], .suggest .opt:hover, .suggest .opt[aria-selected="true"] { background: var(--bg-soft); }
/* A searchable select (app.js, select[data-searchable]): the list opens under
   the box, and its last line hands over to the free-text field. */
.combo { position: relative; }
.combo .suggest { max-height: 320px; }
.suggest .opt { cursor: pointer; }
.suggest .opt-other { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; color: var(--brand-ink); font-weight: 600; }
.suggest a .bi { color: var(--muted); }
.suggest .price { margin-left: auto; color: var(--muted); font-size: .85rem; flex: none; }
/* Search suggestions: compact one-line rows (app.js caps them at 6). */
.search-box .suggest { max-height: min(60vh, 420px); padding: 4px; }
.search-box .suggest a { min-height: 44px; padding: 6px 10px; gap: 10px; }
.search-box .suggest a .bi { flex: none; font-size: .95rem; }
.sg-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sg-label, .sg-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-label { font-size: .92rem; }
.sg-text small { font-size: .76rem; color: var(--muted); }
.suggest .sg-all { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 2px; color: var(--brand-ink); font-weight: 600; }
.suggest .sg-all .bi { color: var(--brand-ink); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--ink); font-weight: 600; text-decoration: none; font-size: .92rem; position: relative;
}
.header-link:hover { background: var(--bg-soft); color: var(--ink); }
.header-link .bi { font-size: 1.2rem; }
.badge-count {
  position: absolute; top: 4px; left: 26px; min-width: 1.5em; height: 1.5em; padding: 0 .42em; border-radius: .75em;
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.badge-count[hidden] { display: none; }

.header-mobile-search { padding: 0 0 12px; }
@media (max-width: 991.98px) {
  :root { --header-h: 60px; }
  .site-header .bar { gap: 10px; }
  .brand { font-size: 1.1rem; }
  .brand small { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .loc-btn { max-width: 150px; padding: 6px 10px; border: 0; background: var(--bg-soft); }
}

.nav-strip { border-top: 1px solid var(--line); }
.nav-strip ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav-strip ul::-webkit-scrollbar { display: none; }
.nav-strip a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; white-space: nowrap;
  color: var(--ink-2); font-weight: 600; font-size: .875rem; text-decoration: none; border-bottom: 2px solid transparent;
}
.nav-strip a:hover { color: var(--ink); }
.nav-strip a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ----------------------------------------------------------- bottom nav -- */

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px;
  color: var(--muted); font-size: .75rem; font-weight: 600; text-decoration: none; position: relative;
}
.bottom-nav a .bi { font-size: 1.3rem; line-height: 1; height: 26px; display: grid; place-items: center; }
/* The current place: a filled icon and the brand colour, no floating marker. */
.bottom-nav a[aria-current="page"] { color: var(--brand, #0f766e); }
.bottom-nav .badge-count { top: 6px; left: calc(50% + 6px); }
@media (min-width: 992px) { .bottom-nav { display: none; } }

/* --------------------------------------------------------------- footer -- */

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 24px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a {
  display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; font-size: .925rem;
}
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .footer-brand p { max-width: 320px; font-size: .9rem; }
.site-footer .legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: var(--muted); }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); background: #fff; }
.social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 991.98px), (pointer: coarse) { .site-footer li a { min-height: 44px; } }

/* --------------------------------------------------------- breadcrumbs -- */

.crumbs { padding-top: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; color: var(--line-2); margin-right: 2px; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 991.98px), (pointer: coarse) { .crumbs a { min-height: 44px; } }

/* ---------------------------------------------------------------- hero -- */

.hero { padding: 32px 0 24px; }
.hero h1 { max-width: 15ch; margin-bottom: 20px; }
.hero-panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; box-shadow: var(--shadow-sm);
}
.hero-panel h2 { font-size: 1.05rem; color: var(--ink-2); font-weight: 600; margin-bottom: 14px; }
.hero-art {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 100%; min-height: 420px;
}
.hero-art .tile-art {
  border-radius: var(--radius-lg); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  color: #fff; position: relative; overflow: hidden; text-decoration: none;
}
.hero-art .tile-art:first-child { grid-row: span 2; }
.hero-art .tile-art .bi { position: absolute; right: -10px; top: -6px; font-size: 7rem; opacity: .22; }
.hero-art .tile-art strong { font-size: 1.15rem; line-height: 1.2; }
.hero-art .tile-art span { font-size: .85rem; opacity: .9; }
.hero-art .tile-art:hover { color: #fff; filter: brightness(1.05); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.trust-strip .item { display: flex; align-items: center; gap: 10px; }
.trust-strip .item .bi { font-size: 1.4rem; color: var(--brand); }
.trust-strip .item strong { display: block; font-size: .95rem; }
.trust-strip .item span { display: block; font-size: .8rem; color: var(--muted); }
@media (max-width: 991.98px) {
  .hero { padding-top: 16px; }
  .hero h1 { font-size: 1.6rem; margin-bottom: 14px; }
  .hero-panel { padding: 14px; border: 0; box-shadow: none; padding-inline: 0; }
}

/* ------------------------------------------------------- category tiles -- */

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* Category links: the icon beside its name, in a bordered chip, as many
   columns as the space holds. For a list in a narrow column (a category
   page's "Explore other services" sits between the filters and the cart,
   300-520px wide): a row of ten icon tiles there made each 22-41px wide and
   broke every name a word to a line. */
/* 180px keeps most names on one line; never fewer than two columns, so a
   phone gets a 2-up grid rather than a list eight chips tall. */
.cat-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, calc(50% - 4px)), 1fr)); gap: 8px; }
.cat-links a {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px 8px 8px;
  border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none;
  font-size: .85rem; font-weight: 600; line-height: 1.25; transition: background .15s;
}
.cat-links a:hover { background: var(--bg-soft); color: var(--ink); }
.cat-links .cat-icon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 12px; flex-shrink: 0; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); text-align: center; font-size: .8rem; font-weight: 600; line-height: 1.25;
  min-height: 108px; transition: background .15s;
}
.cat-tile:hover { background: var(--bg-soft); color: var(--ink); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.55rem;
  background: color-mix(in srgb, var(--tint, var(--brand)) 12%, #fff); color: var(--tint, var(--brand));
}
.cat-tile img.cat-icon { object-fit: cover; }

/* ---------------------------------------------------------------- rails -- */

.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rail-head h2 { margin: 0; }
.rail-head p { margin: 4px 0 0; color: var(--muted); }
.rail-head .rail-nav { display: none; gap: 8px; }
@media (min-width: 992px) { .rail-head .rail-nav { display: flex; } }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 992px) { .rail { grid-auto-columns: calc((100% - 4 * 16px) / 5); } }
@media (max-width: 575.98px) { .rail { grid-auto-columns: 46%; gap: 12px; } .rail.wide { grid-auto-columns: 82%; } }
.rail.wide { grid-auto-columns: minmax(280px, 1fr); }
@media (min-width: 992px) { .rail.wide { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }

/* Fewer cards than a row holds: they share the row instead of leaving empty
   columns beside them. One or two lie on their side, picture beside the words
   (here and in directory.css), stacked on a phone and side by side above. */
:is(.rail:not(.wide), .pgrid, .card-grid):not(:has(> :nth-child(3))) { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) {
  :is(.rail:not(.wide), .pgrid, .card-grid):not(:has(> :nth-child(3))) { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
}
@media (min-width: 992px) {
  :is(.rail:not(.wide), .pgrid, .card-grid):not(:has(> :nth-child(5))),
  .rail.wide:not(:has(> :nth-child(3))) { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
  /* three across: a shorter picture, or each card is taller than it is wide */
  :is(.rail:not(.wide), .pgrid, .card-grid):has(> :nth-child(3)):not(:has(> :nth-child(4))) > .svc-tile > .art { aspect-ratio: 4 / 3; }
}

/* service tile (rails) */
.svc-tile { display: block; text-decoration: none; color: var(--ink); }
.svc-tile:hover { color: var(--ink); }
.svc-tile .art { aspect-ratio: 1 / 1; border-radius: var(--radius); margin-bottom: 10px; }
.svc-tile h3 { font-size: .95rem; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.svc-tile .meta { font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.svc-tile:hover h3 { text-decoration: underline; }
:is(.rail:not(.wide), .pgrid, .card-grid):not(:has(> :nth-child(3))) > .svc-tile {
  display: grid; grid-template-columns: clamp(96px, 28%, 152px) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 16px;
  padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
:is(.rail:not(.wide), .pgrid, .card-grid):not(:has(> :nth-child(3))) > .svc-tile > .art { grid-row: 1 / -1; margin: 0; }
:is(.rail:not(.wide), .pgrid, .card-grid):not(:has(> :nth-child(3))) > .svc-tile > h3 { grid-row: 2; }
:is(.rail:not(.wide), .pgrid, .card-grid):not(:has(> :nth-child(3))) > .svc-tile > .meta { grid-row: 3; }
:is(.rail:not(.wide), .pgrid, .card-grid):not(:has(> :nth-child(3))) > .svc-tile > .lowest-line { grid-row: 4; }

/* the drawn picture a service shows until a real photograph is uploaded */
.art {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--tint, var(--brand)) 30%, transparent) 0, transparent 45%),
    linear-gradient(145deg, color-mix(in srgb, var(--tint, var(--brand)) 16%, #fff), color-mix(in srgb, var(--tint, var(--brand)) 34%, #fff));
  color: var(--tint, var(--brand));
}
.art > .bi { font-size: clamp(2.2rem, 6vw, 3.4rem); filter: drop-shadow(0 6px 12px rgba(15, 23, 42, .12)); }
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art .ribbon {
  position: absolute; left: 8px; top: 8px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; box-shadow: var(--shadow-sm);
}

.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); font-size: .85rem; }
.rating .bi-star-fill { color: var(--star); font-size: .78rem; }
.rating .count { color: var(--muted); font-weight: 500; }
.price { font-weight: 700; color: var(--ink); }
.price-was { color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 4px; }
.price-off { color: var(--success); font-weight: 700; font-size: .85rem; }
.dot-sep::before { content: "\2022"; color: var(--line-2); margin-right: 6px; }

/* banner cards */
.banner {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 180px; padding: 22px;
  border-radius: var(--radius-lg); text-decoration: none; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--tint, var(--brand)), color-mix(in srgb, var(--tint, var(--brand)) 55%, #0f172a));
}
.banner:hover { color: #fff; }
.banner h3 { color: #fff; font-size: 1.3rem; margin: 0 0 6px; max-width: 16ch; }
.banner p { color: rgba(255, 255, 255, .9); margin: 0; font-size: .9rem; max-width: 30ch; }
.banner .cta {
  align-self: flex-start; background: #fff; color: var(--ink); border-radius: 8px; padding: 9px 14px; font-weight: 700; font-size: .85rem;
}
.banner > .bi { position: absolute; right: -14px; bottom: -22px; font-size: 8rem; opacity: .18; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner > :not(img):not(.bi) { position: relative; z-index: 1; }

/* -------------------------------------------------------------- cards -- */

.card-x { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.card-x.pad { padding: 20px; }
.card-x + .card-x { margin-top: 16px; }
.card-x > h2, .card-x .card-title { font-size: 1.05rem; margin-bottom: 12px; }

.promise { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; }
.promise h2 { font-size: 1rem; margin-bottom: 12px; }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.promise li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.promise li .bi { color: var(--brand); font-size: 1.05rem; margin-top: 1px; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.step .num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .9rem; margin: 0; }

.cta-band {
  border-radius: var(--radius-xl); background: var(--ink); color: #fff; padding: 32px; display: flex; flex-wrap: wrap;
  gap: 20px; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; }
.cta-band .btn-light { --bs-btn-bg: #fff; --bs-btn-color: var(--ink); --bs-btn-border-color: #fff; }

/* ------------------------------------------------ about, POS, help pages -- */

.page-hero { padding: 32px 0 8px; }
.page-hero h1 { max-width: 20ch; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.fact-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .85rem; font-weight: 600; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.feature-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 20px; }
.feature-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.2rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p, .feature-card ul { margin: 0; font-size: .9rem; color: var(--ink-2); }
.feature-card ul { padding-left: 1.1rem; }
.feature-card li + li { margin-top: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-grid > div { background: var(--bg-tint); border-radius: var(--radius-lg); padding: 16px 18px; }
.stat-grid strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.stat-grid span { font-size: .9rem; color: var(--ink-2); }

/* A page to read (privacy, terms, help, contact): the text at a reading
   width, with where-am-I and where-next beside it, the pair centred. */
.doc-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 992px) {
  .doc-layout { grid-template-columns: minmax(0, 760px) 300px; gap: 32px; justify-content: center; }
  .doc-layout > aside { position: sticky; top: calc(var(--stick, var(--header-h)) + 24px); }
  .doc-layout .panel { padding: 28px 32px; }
}
.doc-layout .prose { max-width: none; }
.doc-layout .prose > h2:first-child { margin-top: 0; }
.doc-layout h2[id] { scroll-margin-top: calc(var(--stick, var(--header-h)) + 16px); }
.toc ol, .doc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a, .doc-links a { display: block; padding: 8px 10px; margin-inline: -10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.toc a:hover, .doc-links a:hover { background: var(--bg-soft); color: var(--ink); }

/* ------------------------------------------------------- category page -- */

.cat-hero { padding: 20px 0 8px; }
.cat-hero .head { display: flex; gap: 16px; align-items: center; }
.cat-hero .cat-icon { width: 64px; height: 64px; font-size: 1.8rem; border-radius: 16px; flex-shrink: 0; }
.cat-hero h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.cat-hero .sub { margin: 4px 0 0; color: var(--muted); }

.cat-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 992px) { .cat-layout { grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 28px; } }

.cat-nav { position: sticky; top: calc(var(--stick, var(--header-h)) + 16px); }
.cat-nav .card-x { padding: 16px; }
.cat-nav h2 { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.section-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.section-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink);
  font-size: .75rem; font-weight: 600; text-align: center; line-height: 1.2; padding: 6px 2px; border-radius: 10px; min-height: 44px;
}
.section-tile .art { width: 100%; aspect-ratio: 1; border-radius: 12px; }
.section-tile .art .bi { font-size: 1.4rem; }
.section-tile:hover { color: var(--ink); background: var(--bg-soft); }
.section-tile[aria-current="true"] .art { outline: 2px solid var(--ink); outline-offset: 2px; }

.chip-bar {
  position: sticky; top: var(--stick, var(--header-h)); z-index: 1020; background: #fff; border-bottom: 1px solid var(--line);
  margin: 0 -16px; padding: 8px 16px;
}
/* To the screen's edge under the tablets' 24px side margins too. */
@media (min-width: 576px) and (max-width: 1239.98px) { .chip-bar { margin: 0 -24px; padding: 8px 24px; } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; text-decoration: none; white-space: nowrap;
}
.chip:hover { background: var(--bg-soft); color: var(--ink); }
.chip[aria-current="true"], .chip.active, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 991.98px), (pointer: coarse) { .chip { min-height: 44px; } }

.svc-section { padding-top: 8px; }
.svc-section + .svc-section { border-top: 8px solid var(--bg-soft); margin-top: 24px; padding-top: 24px; }
.svc-section > h2 { font-size: 1.3rem; margin-bottom: 4px; }

.svc-card { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc-card:last-child { border-bottom: 0; }
.svc-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.svc-card h3 a { color: var(--ink); text-decoration: none; }
.svc-card h3 a:hover { text-decoration: underline; }
.svc-card .badges { display: flex; gap: 6px; margin-bottom: 6px; }
.svc-card .line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .9rem; margin-bottom: 8px; }
.svc-card ul.points { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.svc-card ul.points li { font-size: .85rem; color: var(--ink-2); display: flex; gap: 8px; }
.svc-card ul.points li::before { content: "\2022"; color: var(--muted); }
.svc-card .details-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--brand-ink); text-decoration: none; background: none; border: 0; padding: 0; }
.svc-card .details-link:hover { text-decoration: underline; }
.svc-card .media { position: relative; align-self: start; }
.svc-card .media .art { aspect-ratio: 1; border-radius: var(--radius); }
.svc-card .media .add-wrap { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); width: 88px; }
.svc-card .options-note { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 20px; }
@media (max-width: 575.98px) { .svc-card { grid-template-columns: minmax(0, 1fr) 108px; gap: 12px; } }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700;
  background: var(--bg-soft); color: var(--ink-2);
}
.tag-brand { background: var(--brand-soft); color: var(--brand-ink); }
.tag-success { background: var(--success-soft); color: var(--success); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-info { background: var(--info-soft); color: var(--info); }

/* the Add button and its stepper */
.add-btn {
  width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--brand-ink);
  font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.add-btn:hover { background: var(--brand-soft); border-color: var(--brand); }
.stepper {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 40px; border-radius: 10px;
  border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; box-shadow: var(--shadow);
}
.stepper button {
  border: 0; background: transparent; color: var(--brand-ink); font-size: 1.1rem; font-weight: 700; min-height: 40px; min-width: 32px;
  display: grid; place-items: center; border-radius: 10px;
}
.stepper button:hover { background: rgba(15, 118, 110, .12); }
.stepper output { min-width: 18px; text-align: center; font-size: .95rem; }
.stepper[hidden], .add-btn[hidden] { display: none; }
@media (max-width: 991.98px), (pointer: coarse) { .add-btn, .stepper, .stepper button { min-height: 44px; } }
[data-busy] { opacity: .6; pointer-events: none; }

/* cart card on the category page and checkout */
.cart-card { position: sticky; top: calc(var(--stick, var(--header-h)) + 16px); }
.cart-card .card-x { padding: 18px; }
.cart-card h2 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cart-lines { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 10px; align-items: center; }
.cart-line .name { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.cart-line .name small { display: block; color: var(--muted); font-weight: 500; }
.cart-line .amt { font-weight: 600; font-size: .9rem; text-align: right; min-width: 56px; }
.cart-line .stepper { min-height: 36px; box-shadow: none; }
.cart-line .stepper button { min-height: 36px; }
@media (max-width: 991.98px), (pointer: coarse) { .cart-line .stepper, .cart-line .stepper button { min-height: 44px; } }
.cart-empty { text-align: center; padding: 18px 8px; color: var(--muted); }
.cart-empty .bi { font-size: 2.4rem; color: var(--line-2); display: block; margin-bottom: 6px; }

.mobile-cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 1036;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
}
.mobile-cart-bar[hidden] { display: none; }
.mobile-cart-bar strong { display: block; font-size: 1rem; }
.mobile-cart-bar span { font-size: .8rem; opacity: .85; }
.mobile-cart-bar .btn { --bs-btn-bg: #fff; --bs-btn-color: var(--ink); --bs-btn-border-color: #fff; --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: var(--ink); }
@media (min-width: 992px) { .mobile-cart-bar { display: none !important; } }

/* --------------------------------------------------- modal / bottom sheet -- */

.modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--line); padding: 16px 20px; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-body { padding: 20px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 20px; }
.btn-close { width: 44px; height: 44px; padding: 0; background-size: 14px; border-radius: 999px; opacity: .7; }
.btn-close:hover { background-color: var(--bg-soft); opacity: 1; }
@media (max-width: 575.98px) {
  .modal.sheet .modal-dialog { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; }
  .modal.sheet .modal-content { border-radius: 20px 20px 0 0; max-height: 88vh; }
  .modal.sheet .modal-body { overflow-y: auto; }
}

.option-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.option-row:last-child { border-bottom: 0; }
.option-row .name { font-weight: 600; }
.option-row .sub { font-size: .85rem; color: var(--muted); }
.option-row .add-btn, .option-row .stepper { box-shadow: none; }

.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.city-list a {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.city-list a:hover { border-color: var(--ink); color: var(--ink); }
.city-list a[aria-current="true"] { border-color: var(--brand); background: var(--brand-soft); }

/* ---------------------------------------------------------- service page -- */

.svc-page .art { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.svc-page h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.check-list, .cross-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li, .cross-list li { display: flex; gap: 10px; color: var(--ink-2); }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--success); }
.cross-list li::before { content: "\F62A"; font-family: "bootstrap-icons"; color: var(--danger); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; padding: 12px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\F282"; font-family: "bootstrap-icons"; transition: transform .2s; color: var(--muted); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 0 14px; color: var(--ink-2); }

.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .who { font-weight: 600; }
.review .when { color: var(--muted); font-size: .8rem; }
.stars { color: var(--star); letter-spacing: 1px; font-size: .85rem; }

/* -------------------------------------------------------------- checkout -- */

.checkout-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 992px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; } }
.step-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.step-card + .step-card { margin-top: 16px; }
.step-card > header { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.step-card > header .ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.15rem; color: var(--ink);
  flex-shrink: 0;
}
.step-card > header h2 { font-size: 1.05rem; margin: 0; }
.step-card > header p { margin: 0; font-size: .85rem; color: var(--muted); }
.step-card > header .done { margin-left: auto; color: var(--success); font-size: 1.3rem; }
.step-card > .body { padding: 0 20px 20px; }
.step-card.locked { opacity: .55; }

.addr-option {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; min-height: 56px;
}
.addr-option + .addr-option { margin-top: 10px; }
.addr-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.addr-option input { margin-top: 3px; }
.addr-option .lbl { font-weight: 700; font-size: .9rem; }
.addr-option .txt { color: var(--ink-2); font-size: .875rem; }

.day-chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.day-chips::-webkit-scrollbar { display: none; }
.day-chip {
  flex-shrink: 0; width: 72px; min-height: 72px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); font-weight: 600;
}
.day-chip .d { font-size: .75rem; color: var(--muted); font-weight: 600; }
.day-chip .n { font-size: 1.2rem; font-weight: 700; }
.day-chip:hover { border-color: var(--ink); }
.day-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.day-chip[aria-pressed="true"] .d { color: rgba(255, 255, 255, .8); }
.day-chip:disabled { opacity: .45; cursor: not-allowed; }

.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (min-width: 576px) { .time-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.time-chip {
  min-height: 48px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink);
}
.time-chip:hover:not(:disabled) { border-color: var(--ink); }
.time-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.time-chip:disabled { color: #9aa3b2; background: var(--bg-soft); border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }

.pay-option {
  display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius);
}
.pay-option .bi { font-size: 1.4rem; color: var(--brand-ink); }

.bill { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .925rem; }
.bill li { display: flex; justify-content: space-between; gap: 12px; }
.bill li.total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 1.05rem; }
.bill li.discount { color: var(--success); }

.coupon-form { display: flex; gap: 8px; }
.coupon-form .form-control { text-transform: uppercase; }

/* ------------------------------------------------------------------ auth -- */

.auth-wrap { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; padding: 32px 0 48px; }
.auth-card { width: 100%; max-width: 440px; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; background: #fff; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .lead-txt { color: var(--muted); margin-bottom: 20px; }
@media (max-width: 575.98px) { .auth-card { border: 0; box-shadow: none; padding: 8px 0; } }

/* ------------------------------------------------------- account / booking -- */

.account-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 992px) { .account-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; } }
.account-nav { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; background: #fff; }
.account-nav a {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--ink-2);
  text-decoration: none; font-weight: 600;
}
.account-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.account-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.avatar {
  width: 52px; height: 52px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}

.booking-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); background: #fff;
}
.booking-card + .booking-card { margin-top: 12px; }
.booking-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.booking-card .cat-icon { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 12px; }
.booking-card h3 { font-size: 1rem; margin: 0 0 2px; }
.booking-card .sub { color: var(--muted); font-size: .85rem; }

.tracker { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.tracker li { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); position: relative; padding-top: 30px; }
.tracker li::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2); z-index: 1;
}
.tracker li::after { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--line-2); }
.tracker li:first-child::after { display: none; }
.tracker li.done { color: var(--ink); }
.tracker li.done::before { background: var(--brand); border-color: var(--brand); }
.tracker li.done::after { background: var(--brand); }
.tracker li.now::before { box-shadow: 0 0 0 5px var(--brand-ring); }

.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
}
.code-box .code { font-size: 1.6rem; font-weight: 800; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.code-box p { color: rgba(255, 255, 255, .75); margin: 0; font-size: .85rem; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t { font-weight: 600; font-size: .9rem; }
.timeline .w { color: var(--muted); font-size: .8rem; }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: var(--line-2); cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 3px solid var(--brand-ring); border-radius: 8px; }

.empty-state { text-align: center; padding: 48px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.empty-state .bi { font-size: 2.6rem; color: var(--muted); display: block; margin-bottom: 8px; }
.empty-state h2 { font-size: 1.15rem; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-pending, .status-confirmed { background: var(--info-soft); color: var(--info); }
.status-assigned, .status-in_progress { background: var(--warn-soft); color: var(--warn); }
.status-completed { background: var(--success-soft); color: var(--success); }
.status-cancelled { background: var(--danger-soft); color: var(--danger); }

/* --------------------------------------------------------------- toast -- */

.toast-host {
  position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px); z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; width: max-content; max-width: calc(100vw - 24px);
}
.toast-host[data-show] { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-host .toast-body {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg);
}
.toast-host .toast-body a { color: #5eead4; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 992px) { .toast-host { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .toast-host { transition: none; } }

/* ---------------------------------------------------------- pagination -- */

.pagination { --bs-pagination-color: var(--ink); --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); gap: 6px; flex-wrap: wrap; }
.pagination .page-link { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 10px !important; border-color: var(--line-2); }

/* ---------------------------------------------------------- utilities -- */

.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.divider { height: 8px; background: var(--bg-soft); margin: 0; border: 0; }
.text-ink { color: var(--ink) !important; }
.fw-800 { font-weight: 800; }
.ratio-square { aspect-ratio: 1; }
.page-title { padding: 24px 0 8px; }
.page-title h1 { margin: 0; }
.page-title p { margin: 6px 0 0; color: var(--muted); }
.prose { max-width: 72ch; }
/* A paragraph stays a comfortable line on wide screens (65ch: about 78 letters of Inter), centred where its block is. */
main p { max-width: 65ch; }
main p.text-center, main :is(.text-center, .empty-state, .empty, .cart-empty, .store-end) p { margin-inline: auto; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; font-size: 1.25rem; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ------------------------------------------------------------- extras -- */

.min-w-0 { min-width: 0; }
.add-control { position: relative; }
.btn-check + .chip { cursor: pointer; }
.btn-check:checked + .chip { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-check:focus-visible + .chip { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
.booking-card h2, .booking-card h3 { font-size: 1rem; margin: 0 0 2px; }
.account-menu { border: 0; border-radius: 14px; padding: 8px; min-width: 230px; box-shadow: var(--shadow-lg); }
.account-menu .dropdown-item { display: flex; align-items: center; gap: 10px; min-height: 44px; border-radius: 10px; font-weight: 500; }
.account-menu .dropdown-item:active { background: var(--ink); }
.account-nav form { margin: 0; }
.account-nav-btn {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 10px; width: 100%;
  color: var(--ink-2); font-weight: 600; background: none; border: 0; text-align: left;
}
.account-nav-btn:hover { background: var(--bg-soft); color: var(--danger); }
.cat-card { transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.input-group-text { background: var(--bg-soft); border-color: var(--line-2); border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.input-group > .form-control { border-radius: 0 10px 10px 0; }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--ink); }

a.add-btn { text-decoration: none; }
@media (max-width: 991.98px) {
  .site-header .bar { min-width: 0; }
  .header-actions { gap: 4px; }
  .header-actions .btn-sm { padding-inline: .75rem; }
  .loc-btn { min-width: 0; flex: 0 1 auto; }
}
@media (max-width: 340px) {
  .brand > span:not(.brand-mark) { display: none; }
  .loc-btn { max-width: 160px; }
}
.shop-link {
  display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); min-height: 64px;
}
.shop-link:hover { border-color: var(--line-2); background: var(--bg-soft); color: var(--ink); }
.shop-link .cat-icon { width: 44px; height: 44px; font-size: 1.2rem; flex-shrink: 0; }
.shop-link strong { display: block; font-size: .9rem; }
.shop-link small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.3; }
@media (max-width: 991.98px) { .shop-entry { padding-top: 6px; } }
.bottom-nav a { font-size: .75rem; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .header-actions .btn-sm { padding-inline: .6rem; font-size: .82rem; }
  .header-link { padding: 0 8px; }
  .loc-btn { max-width: 128px; }
}
/* grid tracks must be allowed to shrink below a scrolling rail's content */
.checkout-layout > *, .cat-layout > *, .account-layout > *, .detail-split > *, .listing-split > *, .store-layout > * { min-width: 0; }
@media (max-width: 575.98px) { .auth-card { padding: 8px 12px; } }

/* A business's own contact details, printed in full (partials/contact-lines). */
.contact-lines { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }
.contact-lines li { display: flex; align-items: flex-start; gap: .5rem; min-width: 0; overflow-wrap: anywhere; }
.contact-lines i { color: var(--brand); margin-top: .15rem; flex: none; }
.contact-lines a { font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.pview-seller { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: .75rem .9rem; }

/* A one-line page title: the search bar sits above it on every page, so the
   content starts straight after. */
.page-title-compact { font-size: 1.15rem; font-weight: 800; margin: 0 0 .75rem; letter-spacing: -.01em; }
.page-title-compact span { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .25rem; }
.header-mobile-search { padding: 0 0 10px; }
.header-mobile-search .form-control { min-height: 42px; }

/* Phones: the page starts straight after the search bar. The bottom nav's
   Cart (with its count) replaces the floating cart bars, and the services
   index keeps only its title. */
@media (max-width: 991.98px) {
  .list-bar, .mobile-cart-bar { display: none !important; }
}
@media (max-width: 767.98px) {
  .page-title { padding: 12px 0 0; }
  .page-title .eyebrow, .page-title p { display: none; }
  .page-title h1 { font-size: 1.25rem; }
  .section-head .section-title { font-size: 1.25rem; }
}

/* ------------------------------------------------- business contact card -- */
/* partials/contact-actions: the number, then a row of round quick actions. */
.contact-card {
  flex: 1 1 100%; width: 100%; max-width: 520px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; padding: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.contact-card-number { display: flex; align-items: center; gap: 12px; padding: 2px 2px 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.contact-card-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--brand-soft, #ccfbf1); color: var(--brand); font-size: 1.15rem;
}
.contact-card-number strong { display: block; font-size: 1.2rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.contact-card-number .min-w-0 > span { display: block; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-card-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
.qa {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 4px 2px;
  border: 0; background: none; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 600;
  border-radius: 12px; transition: background-color .15s;
}
.qa:hover { background: var(--bg-soft); color: var(--ink); }
.qa:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.qa-ic {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem;
  transition: transform .15s;
}
.qa:active .qa-ic { transform: scale(.92); }
.qa-call .qa-ic, .contact-dock-btn.qa-call { background: var(--brand); color: #fff; }
.qa-wa .qa-ic, .contact-dock-btn.qa-wa { background: #25d366; color: #fff; }
.qa-share .qa-ic { background: #eef2ff; color: #4338ca; }
.qa-save .qa-ic { background: #fff1f2; color: #e11d48; }
.header-saved { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #e11d48; font-size: 1.15rem; }
.header-saved[hidden] { display: none; }
.header-saved .badge-count { top: 4px; right: 2px; left: auto; }
.qa-copy .qa-ic { background: #f1f5f9; color: #334155; }
.qa-copy.is-done .qa-ic { background: #dcfce7; color: #15803d; }

/* The dock: a small pill above the bottom nav once the card is off screen. */
.contact-dock {
  position: fixed; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 1040;
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; max-width: calc(100vw - 24px);
  background: rgba(15, 23, 42, .92); color: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
  backdrop-filter: blur(8px); transform: translateY(0); opacity: 1; transition: transform .2s, opacity .2s;
}
.contact-dock[hidden] { display: flex; transform: translateY(16px); opacity: 0; pointer-events: none; }
.contact-dock-name { font-size: .8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.contact-dock-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; text-decoration: none; }
.contact-dock-btn:hover { color: #fff; filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) { .contact-dock, .qa-ic { transition: none; } }
@media (min-width: 992px) { .contact-dock { display: none !important; } }

/* Phones: the bottom nav has the cart, so the city button takes its place
   on the right of the header. */
@media (max-width: 991.98px) {
  .site-header .loc-btn { margin-left: auto; max-width: 190px; }
  .site-header .header-actions { display: none; }
}

/* ------------------------------------------------------------ app frame -- */
/* frame.js: the header and bottom nav stay put and only #appView scrolls.
   Sticky things inside the view therefore stick to its top, not below the
   header (--stick). Without JavaScript none of this applies. */
.app-frame, .app-frame body { height: 100%; overflow: hidden; }
.app-frame body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding-bottom: 0; }
.app-frame .site-header { position: relative; flex: none; }
.app-frame .app-view {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior-y: contain; scroll-padding-top: 16px;
  --stick: 0px;
}
@media (max-width: 991.98px) {
  .app-frame .app-view { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
.app-frame.app-shell .app-view { overflow: hidden; }

.frame-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: var(--brand);
  opacity: 0; pointer-events: none;
}
.frame-progress.is-on { opacity: 1; width: 80%; transition: width 8s cubic-bezier(.1, .7, .2, 1); }
.frame-progress.is-done { opacity: 0; width: 100%; transition: width .2s, opacity .3s .1s; }

.frame-pull {
  position: fixed; left: 50%; top: calc(var(--frame-top, 120px) - 44px); z-index: 1029; width: 40px; height: 40px;
  border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .18); display: grid; place-items: center;
  color: var(--muted); font-size: 1.2rem; opacity: 0; transform: translate(-50%, 0); pointer-events: none;
}
.frame-pull.is-ready { color: var(--brand); }
.frame-pull.is-spinning { opacity: 1 !important; transform: translate(-50%, 80px) !important; }
.frame-pull.is-spinning i { animation: frame-spin .7s linear infinite; display: inline-block; }
@keyframes frame-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .frame-progress.is-on { transition: none; }
  .frame-pull.is-spinning i { animation-duration: 2s; }
}

/* ------------------------------------------------------------- home page -- */
/* Services and products side by side: two doors, a category row for each,
   then alternating rails labelled by kind. */
.home-hero { padding: 20px 0 16px; }
.home-hero h1 { font-size: clamp(1.45rem, 4.6vw, 2.3rem); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; }
.home-hero h1 span { color: var(--brand); }
.home-hero-sub { color: var(--muted); margin: 0 0 16px; max-width: 60ch; font-size: .95rem; }
.home-hero-sub strong { color: var(--ink); font-weight: 700; }

.home-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-door {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 150px;
  border-radius: 20px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .5); transition: transform .15s;
}
.home-door:hover { color: #fff; transform: translateY(-2px); }
.home-door::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); z-index: -1;
}
.door-services { background: linear-gradient(145deg, #0f766e, #134e4a); }
.door-products { background: linear-gradient(145deg, #4338ca, #312e81); }
.door-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-size: 1.3rem; }
.door-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.door-text strong { font-size: 1.05rem; line-height: 1.2; }
.door-text small { font-size: .78rem; opacity: .85; line-height: 1.3; }
.door-text em { font-style: normal; font-size: .75rem; font-weight: 600; opacity: .75; margin-top: 4px; }
.door-go { position: absolute; top: 16px; right: 16px; font-size: 1.1rem; opacity: .8; }
@media (min-width: 768px) {
  .home-hero { padding: 36px 0 24px; }
  .home-door { flex-direction: row; align-items: center; min-height: 120px; padding: 22px 24px; gap: 16px; }
  .door-icon { width: 56px; height: 56px; font-size: 1.6rem; flex: none; }
  .door-text strong { font-size: 1.25rem; }
  .door-text small { font-size: .9rem; }
  .door-go { position: static; margin-left: auto; font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .home-door { transition: none; } .home-door:hover { transform: none; } }

.home-cats { margin-top: 8px; }
.home-cats-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 0 10px; }
.home-cats-head h2 { font-size: 1.2rem; font-weight: 800; margin: 0; }
/* Category grid: three square tiles a row, two rows at most (home.blade
   takes six; See all has the rest), picture or big icon on a soft tint, the
   name under it. On a wide screen the two grids sit side by side. */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.home-cats + .home-cats { margin-top: 20px; }
@media (min-width: 768px) {
  .home-cats-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .home-cats + .home-cats { margin-top: 8px; }
}
.cat-box { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.cat-box:hover { color: var(--ink); }
.cat-pic {
  width: 100%; aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--tint, var(--brand)) 13%, #fff); color: var(--tint, var(--brand)); font-size: 2rem;
}
.cat-pic img { width: 82%; height: 82%; object-fit: contain; }
/* A picture sits on plain light grey, as a photo would. */
.cat-pic:has(img) { background: #f3f3f4; }
.cat-pic img[src*="/img/cat3d/"] { width: 58%; height: 58%; }
.cat-name {
  font-size: .78rem; font-weight: 600; line-height: 1.2; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.home-cats-head a { font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--brand); min-height: 32px; display: inline-flex; align-items: center; }
.cat-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 2px; overflow-x: auto;
  scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-row .cat-tile { scroll-snap-align: start; min-height: 100px; font-size: .75rem; padding: 8px 4px; }
.cat-row .cat-icon { width: 52px; height: 52px; font-size: 1.4rem; }
/* On a desktop the swipe rail becomes the category-link chips (.cat-links):
   five to a row, so the ten services make two full rows, the five shop
   categories one, and the columns line up between the two cards. A row of
   icon tiles stretched across 1300px left ten tiles bunched on the left
   (auto-fill) or five drifting 280px apart (auto-fit). */
@media (min-width: 992px) {
  .cat-row { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 4px 8px 8px; }
  .cat-row .cat-tile {
    flex-direction: row; text-align: left; gap: 12px; min-height: 64px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 14px; font-size: .88rem;
  }
  .cat-row .cat-icon { width: 44px; height: 44px; font-size: 1.25rem; flex-shrink: 0; }
}

.home-kind {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; margin-bottom: 4px;
}
.kind-service { background: color-mix(in srgb, #0f766e 12%, #fff); color: #0f766e; }
.kind-product { background: color-mix(in srgb, #4338ca 12%, #fff); color: #4338ca; }

/* Compare professionals (svc/providers). */
.pro-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pro-row:first-of-type { border-top: 0; }
.pro-main { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; color: var(--ink); text-decoration: none; }
.pro-main .avatar { width: 38px; height: 38px; font-size: .85rem; flex: none; }
.pro-price { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.15; }
.pro-price strong { font-size: 1rem; }
.pro-price small { font-size: .75rem; color: var(--muted); }
.pro-price .pro-low { color: #15803d; font-weight: 700; }
.pro-actions { display: flex; gap: 6px; flex: none; }
.pro-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; text-decoration: none; }
.pro-btn:hover { color: #fff; filter: brightness(1.08); }
.pro-btn.pro-wa { background: #25d366; }
/* In the narrow side column the name gets the full line; price and buttons
   sit under it, the price lined up with the name. */
.cart-card .pro-row { flex-wrap: wrap; row-gap: 6px; }
.cart-card .pro-main { flex-basis: 100%; }
.cart-card .pro-price { align-items: flex-start; margin: 0 auto 0 48px; }
.compare-link { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--brand); text-decoration: none; margin: -6px 0 12px; min-height: 32px; }
.compare-link:hover { text-decoration: underline; }

/* The lowest price among professionals (service page, cart). */
.pro-row.is-lowest, .addr-option.is-lowest { border: 2px solid #16a34a; background: #f0fdf4; border-radius: 12px; padding-inline: 10px; }
.pro-row.is-lowest { margin-block: 4px; }
.pro-row.is-lowest + .pro-row { border-top: 0; }
.is-lowest .pro-price strong { color: #15803d; }
.pro-price .pro-low { display: inline-flex; gap: 3px; align-items: center; background: #16a34a; color: #fff !important; font-weight: 700; padding: 1px 7px; border-radius: 999px; font-size: .75rem; margin-bottom: 2px; }
.pro-row.is-lowest, .addr-option.is-lowest { position: relative; margin-top: 14px; padding-top: 16px; }
.lowest-ribbon {
  position: absolute; top: -10px; left: 12px; display: inline-flex; align-items: center; gap: 4px;
  background: #16a34a; color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, .35);
}

/* The lowest price in the city, wherever a price is shown. */
.lowest-line { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .75rem; font-weight: 700; color: #15803d; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lowest-banner {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px;
  background: #f0fdf4; border: 1px solid #86efac; color: #14532d; font-size: .88rem; text-decoration: none; max-width: 520px;
}
.lowest-banner .bi-award-fill { color: #16a34a; font-size: 1.05rem; flex: none; }
.lowest-banner strong { color: #15803d; }
.lowest-banner.is-link:hover { background: #dcfce7; color: #14532d; }

/* Search: "close matches" notice. */
.search-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: .88rem; }

/* Cart: place an order with one business (checkout/order-form). */
.order-box > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.order-box > summary::-webkit-details-marker { display: none; }
.order-box[open] > summary { margin-bottom: 10px; }
.order-form { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.order-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; }
.order-fields input { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 1rem; }
.order-error { color: #b91c1c; font-weight: 600; font-size: .85rem; margin: 8px 0 0; }
.order-error[hidden] { display: none; }
.order-done { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.order-done .bi { color: #16a34a; font-size: 1.3rem; }
.order-done strong { display: block; }
.order-done span { font-size: .88rem; }
@media (max-width: 575.98px) { .order-fields { grid-template-columns: 1fr; } }

/* A running offer, set from the shop's store software */
.pcard-offer { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fee2e2; color: #991b1b; font-size: .75rem; font-weight: 700; vertical-align: middle; }

/* Scan to search (customers are on phones: full-screen, thumb-sized) */
.search-box { position: relative; }
.search-scan { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #0f766e; font-size: 1.25rem; text-decoration: none; }
.search-box .form-control { padding-right: 50px; }
/* Scan: a raised round button that keeps its label on the same line as the
   others — the circle rises above the bar, the space under it is the same
   26px every other icon takes. */
.bottom-scan .bottom-scan-btn { position: relative; width: 26px; height: 26px; }
.bottom-scan .bottom-scan-btn i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #0f766e; color: #fff; font-size: 1.4rem; box-shadow: 0 6px 16px rgba(15,118,110,.35); border: 4px solid #fff; }
.bottom-scan[aria-current="page"] .bottom-scan-btn i { background: #115e59; }
.browse-switch { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: #f1f5f9; border-radius: 12px; }
.browse-switch a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 9px; color: var(--muted); font-weight: 600; text-decoration: none; }
.browse-switch a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.scan-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,.6); display: flex; align-items: flex-end; justify-content: center; }
.scan-modal[hidden] { display: none; }
.scan-modal-card { width: 100%; max-width: 560px; max-height: 100dvh; overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.scan-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.scan-modal-head h2 { font-size: 1.1rem; margin: 0; font-weight: 700; }
.scan-modal-close { width: 44px; height: 44px; border: 0; background: #f1f5f9; border-radius: 50%; font-size: 1.1rem; }
.scan-modal-type { display: flex; gap: 8px; margin-top: 10px; }
.scan-modal-type .form-control { min-height: 48px; }
html.scan-open, html.scan-open body { overflow: hidden; }
.scan-page { max-width: 560px; margin: 0 auto; }
.scan-outcome { padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; }
.scan-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scan-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: #0f172a; font-weight: 600; cursor: pointer; }
.scan-cam-box { position: relative; flex-basis: 100%; }
.scan-cam-box video { width: 100%; height: min(60vh, 420px); border-radius: 14px; background: #000; object-fit: cover; display: block; }
.scan-cam-aim { position: absolute; left: 10%; right: 10%; top: 35%; height: 30%; border: 3px solid rgba(255,255,255,.9); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.3); pointer-events: none; }
.scan-cam-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; justify-content: flex-end; }
.scan-cam-bar select, .scan-cam-bar button { min-height: 44px; border-radius: 10px; border: 0; padding: 0 12px; background: rgba(255,255,255,.92); }
.scan-cam-bar button.on { background: #fde68a; }
.scan-cam-box[hidden], .scan-cam-bar [hidden] { display: none; }
.scan-info { display: flex; gap: 12px; align-items: center; }
.scan-info img { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; flex: none; }

/* Scan to search: the sheet's "what is happening" face and the result card. */
.scan-status { padding: 4px 0 2px; }
.scan-status-code { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; margin-bottom: 14px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font: 600 .95rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; overflow-wrap: anywhere; }
.scan-status-main { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px; border-radius: var(--radius); background: var(--brand-soft); color: var(--ink); }
.scan-status-main strong { font-size: 1.05rem; }
.scan-status-text { min-width: 0; }
.scan-status-ok, .scan-status-bad { display: none; font-size: 1.6rem; flex: none; }
.scan-status-ok { color: var(--brand); }
.scan-status-bad { color: var(--danger); }
.scan-status[data-state="done"] .scan-spinner, .scan-status[data-state="error"] .scan-spinner { display: none; }
.scan-status[data-state="done"] .scan-status-ok, .scan-status[data-state="error"] .scan-status-bad { display: block; }
.scan-status[data-state="error"] .scan-status-main { background: var(--danger-soft); }
.scan-status-actions { display: flex; gap: 8px; margin-top: 14px; }
.scan-status-actions .btn { flex: 1; min-height: 48px; font-weight: 600; }
.scan-status-actions [hidden] { display: none; }
.scan-spinner { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(15,118,110,.2); border-top-color: var(--brand); animation: frame-spin .8s linear infinite; }
.scan-spinner-sm { display: inline-block; width: 16px; height: 16px; border-width: 2px; vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) { .scan-spinner { animation-duration: 2.4s; } .scan-skel { animation: none; } }

.scan-result { padding: 16px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.scan-result-top { display: flex; gap: 14px; align-items: flex-start; }
.scan-result-photo { flex: none; width: 112px; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: #94a3b8; font-size: 2.2rem; }
.scan-result-photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: opacity .25s ease; }
.scan-result-photo img.is-loading { opacity: 0; }
.scan-result-icon { width: 64px; font-size: 1.6rem; color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.scan-result[data-state="pending"] .scan-result-photo { background: linear-gradient(90deg, var(--bg-soft) 25%, #e9ecf1 50%, var(--bg-soft) 75%) 0 0 / 200% 100%; animation: scan-shimmer 1.2s linear infinite; }
.scan-result[data-state="pending"] .scan-result-photo i { opacity: 0; }
.scan-result-body { min-width: 0; flex: 1; }
.scan-result-code { display: inline-flex; align-items: center; gap: 6px; font: 600 .8rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); letter-spacing: .03em; }
.scan-result-name { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 6px 0 4px; overflow-wrap: anywhere; }
.scan-result-meta:empty { display: none; }
.scan-result-meta { margin: 0; }
.scan-skel { display: block; height: .95em; margin: 6px 0; border-radius: 6px; background: linear-gradient(90deg, var(--bg-soft) 25%, #e9ecf1 50%, var(--bg-soft) 75%) 0 0 / 200% 100%; animation: scan-shimmer 1.2s linear infinite; }
@keyframes scan-shimmer { to { background-position: -200% 0; } }
.scan-result-status { margin: 14px 0 0; color: var(--ink-2); }
.scan-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.scan-result-actions:not(:has(> :not([hidden]))) { display: none; }
.scan-result-actions .btn { min-height: 48px; font-weight: 600; flex: 1 1 auto; }
.scan-result-actions [hidden] { display: none; }
.scan-result-search { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.scan-result-search .form-control { min-height: 48px; }
.scan-result-search .btn { min-width: 52px; }
.scan-result-credit { margin-top: 12px; }
.scan-again { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 14px; font-weight: 600; }

/* Preloader: first page of a visit only (layouts/app.blade.php). */
.preloader { display: none; }
.preloader.is-on { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; transition: opacity .35s ease; }
.preloader.is-off { opacity: 0; pointer-events: none; }
.preloader img { border-radius: 22px; animation: preloader-pulse 1.2s ease-in-out infinite; }
.preloader-name { margin-top: 14px; font-size: 1.6rem; font-weight: 800; color: #111827; }
.preloader-tag { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); font-size: .9rem; color: #6b7280; }
@keyframes preloader-pulse { 50% { transform: scale(.94); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .preloader img { animation: none; } .preloader.is-on { transition: none; } }

/* Blog (resources/views/blog). The grid fills its row whatever the count. */
.blog-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 14px; overflow: hidden; }
.blog-card-media { display: block; aspect-ratio: 1200 / 630; background: #f3f4f6; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-blank { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 2rem; color: #9ca3af; }
.blog-card-body { padding: 16px; }
.blog-card-title { font-size: 1.05rem; font-weight: 700; margin: 6px 0; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { text-decoration: underline; }
.blog-shelves { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.blog-shelves a { padding: 6px 14px; border: 1px solid var(--line, #e5e7eb); border-radius: 999px; text-decoration: none; color: inherit; font-size: .9rem; }
.blog-shelves a[aria-current] { background: #111827; border-color: #111827; color: #fff; }
.blog-shelves span { opacity: .6; margin-left: 2px; }
.blog-hero { width: 100%; height: auto; border-radius: 14px; margin-bottom: 16px; }
.blog-body { line-height: 1.75; }
.blog-body img { max-width: 100%; height: auto; border-radius: 10px; }
.blog-body h2 { font-size: 1.35rem; font-weight: 700; margin-top: 1.5em; }
.blog-body h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.25em; }
.blog-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.blog-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; text-decoration: none; color: inherit; font-weight: 600; }
.blog-pager a:only-child { grid-column: 1 / -1; }
.blog-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.blog-links a { text-decoration: none; }

/* Recommendations and verified reviews (App\Support\Recommendation). */
.badge-recommended { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.tile { position: relative; }
.tile-recommended { position: absolute; top: 8px; left: 8px; z-index: 1; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.kind-recommended { background: #fef3c7; color: #92400e; }
.review-verified { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: #047857; font-size: .74rem; font-weight: 600; }
.review-controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.review-controls a { padding: 4px 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 999px; font-size: .8rem; text-decoration: none; color: inherit; }
.review-controls a[aria-current] { background: #111827; border-color: #111827; color: #fff; }

/* A business's services you can tick to ask about together (partials/service-list). */
.service-pick { cursor: pointer; }
.service-pick:has(.service-pick-box:checked) { background: color-mix(in srgb, #16a34a 6%, #fff); }
.service-pick-box { width: 1.3em; height: 1.3em; margin: 6px 0 0 auto; display: block; }

/* Listing a business whose name is already here (pages/list-business). */
.namesakes { padding: 16px; border: 1px solid #fcd34d; border-radius: 12px; background: #fffbeb; }
.namesake-choices { padding-left: 1.1rem; }
.namesake-choices li { margin-bottom: 6px; }

/* The city sheet's area finder (app.js draws the rows). */
.area-list-title { font-size: .95rem; font-weight: 700; margin: 18px 0 8px; }
.area-results { display: grid; margin-top: 8px; max-height: 42vh; overflow-y: auto; overscroll-behavior: contain; }
.area-results a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 4px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600;
}
.area-results a small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.area-results a[aria-current] { color: var(--brand); }
.area-results a[aria-current]::after { content: "\2713"; margin-left: auto; padding-left: 8px; }
.area-results a[aria-current] small { order: 1; }
/* The visitor's area under the home heading, once known. */
.home-near-area { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 12px; font-weight: 600; color: var(--brand); text-decoration: none; }

/* Ads (partials/ad): always marked as an ad. */
.ad { margin-block: 16px; }
.ad-tag {
  display: inline-block; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.ad-at-site_top { margin: 0; }
.ad-strip {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px;
  background: var(--tint); color: #fff; text-decoration: none; font-size: .875rem; text-align: center;
}
.ad-strip .ad-tag { background: rgba(255,255,255,.25); }
.ad-strip-cta { text-decoration: underline; font-weight: 700; }
.ad-banner { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.ad-banner img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.ad-banner .ad-tag { position: absolute; top: 8px; left: 8px; }
.ad-text {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--tint); color: #fff; text-decoration: none;
}
.ad-text .ad-tag { background: rgba(255,255,255,.25); align-self: flex-start; }
.ad-text-body { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ad-text-body strong { font-size: 1.05rem; }
.ad-text-cta { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--tint); font-weight: 700; }
@media (max-width: 575.98px) {
  .ad-text { flex-wrap: wrap; }
  .ad-text-cta { width: 100%; text-align: center; }
}
.ad-card { display: grid; gap: 6px; max-width: 420px; }
.ad-card .ad-tag { justify-self: start; }

/* Area pages: the heading and three ways in, in one short band. */
.area-head { padding: 20px 0 8px; }
.area-head h1 { font-size: 1.6rem; margin: 0 0 12px; }
.area-head-place { display: block; margin-top: 2px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.area-ways { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.area-ways::-webkit-scrollbar { display: none; }
.area-ways a {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 600; font-size: .9rem; text-decoration: none;
}
.area-ways a:hover { border-color: var(--line-2); background: var(--bg-soft); }
.area-ways a span { color: var(--muted); font-weight: 600; }

/* City sheet: how to allow location again when the phone blocks it. */
.locate-help { display: grid; gap: 4px; margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; color: #7c2d12; font-size: .85rem; }
.locate-help[hidden] { display: none; }
.locate-help span[hidden] { display: none; }
/* A sponsored business is a short card: no big picture block. */
.ad-is-business .tile-media { display: none; }

/* The location sheet (partials/city-modal): search, Use current location,
   then areas and cities. Tall on a phone, like a page of its own. */
.loc-sheet .modal-content { background: #f3f5f9; }
.loc-sheet .modal-header { border-bottom: 0; padding-bottom: 6px; }
.loc-sheet .modal-body { padding-top: 6px; }
@media (max-width: 575.98px) { .loc-sheet .modal-content { min-height: 80vh; } }
.loc-search { position: relative; }
.loc-search .bi-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink); }
.loc-search .form-control { min-height: 50px; padding-left: 46px; border-radius: var(--radius); background: #fff; border-color: var(--line-2); }
.loc-current {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; margin: 12px 0; padding: 12px 16px;
  border: 0; border-radius: var(--radius); background: #fff; color: var(--brand-ink); font-weight: 600; text-align: left;
}
.loc-current[hidden] { display: none; }
.loc-current .bi { font-size: 1.2rem; color: var(--brand); }
.loc-sheet .locate-help { margin: 0 0 12px; }
.loc-sheet .area-results a, .loc-sheet .city-list a { background: #fff; }
.loc-sheet .area-results { gap: 0; border-radius: var(--radius); overflow: hidden auto; }
.loc-sheet .area-list-title[hidden] { display: none; }
.city-list a[hidden] { display: none; }
.loc-sheet .area-results a { padding: 0 16px; }

/* 3D pictures (public/img/3d: 3dicons, CC0; public/img/cat3d: Fluent Emoji
   3D, MIT): step numbers, the home doors, empty states, category icons. */
.step-pic { position: relative; width: 64px; height: 64px; margin-bottom: 10px; }
.step-pic img { width: 64px; height: 64px; }
.step-pic .num { position: absolute; right: -6px; bottom: -2px; width: 24px; height: 24px; font-size: .75rem; margin: 0; }
.door-icon img { width: 80%; height: 80%; object-fit: contain; }
.empty-pic { display: block; width: 80px; height: 80px; margin: 0 auto 10px; }
.cta-band .cta-pic { width: 72px; height: 72px; flex: none; }
img.cat-icon.cat-3d { background: #f3f3f4; object-fit: contain; padding: 6px; }

/* In the spotlight (home): wide slides, swiped; the bar shows the place. */
.spot-title { font-size: 1.35rem; font-weight: 800; margin: 0 0 12px; }
.spot-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.spot-rail::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .spot-rail { grid-auto-columns: calc((100% - 12px) / 2); } }
@media (min-width: 1200px) { .spot-rail { grid-auto-columns: calc((100% - 24px) / 3); } }
.spot {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 176px;
  padding: 20px 14px 20px 20px; border-radius: 18px; overflow: hidden; scroll-snap-align: start; text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, color-mix(in srgb, var(--tint, var(--brand)) 22%, #fff), color-mix(in srgb, var(--tint, var(--brand)) 6%, #fff));
  border: 1px solid color-mix(in srgb, var(--tint, var(--brand)) 18%, #fff);
}
.spot:hover { color: var(--ink); }
.spot-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; position: relative; z-index: 1; }
.spot-text small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.spot-text strong { font-size: 1.35rem; line-height: 1.15; font-weight: 800; max-width: 11ch; }
.spot-cta { margin-top: 8px; background: var(--ink); color: #fff; border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: .88rem; }
.spot-pic { width: 112px; height: 112px; object-fit: contain; flex: none; }
.spot-promo .spot-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-promo:has(.spot-bg) .spot-text { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.spot-promo:has(.spot-bg) .spot-text small, .spot-promo:has(.spot-bg) .spot-text strong { color: #fff; }
.spot-bar { width: 96px; height: 5px; border-radius: 5px; background: var(--line); margin: 14px auto 0; overflow: hidden; }
.spot-bar span { display: block; height: 100%; width: 30%; border-radius: 5px; background: var(--ink); }

/* Home category tiles: a lowest-price badge, and an "All" tile closing each grid. */
.cat-pic { position: relative; overflow: visible; }
.cat-badge {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); white-space: nowrap; z-index: 1;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: .68rem; font-weight: 700; color: var(--success, #15803d);
}
.cat-box:has(.cat-badge) .cat-name { margin-top: 6px; }
.cat-all { background: #f3f3f4; color: var(--ink); font-size: 1.9rem; }

/* Home top (preview): greeting, open right now, six needs. No banner. */
.home-now { padding: 18px 0 8px; }
.now-hello { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.now-hello .home-near-area { margin: 0; font-size: .92rem; }
.home-now h1 { font-size: clamp(1.6rem, 6.4vw, 2.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.home-now h1 span { color: var(--brand); }
.now-open { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .85rem; text-decoration: none; }
.now-open:hover { color: var(--brand-ink); }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .needs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.need { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; background: #f3f3f4; color: var(--ink); text-decoration: none; min-height: 68px; }
.need:hover { background: #ebebed; color: var(--ink); }
.need img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.need span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.need strong { font-size: .92rem; white-space: nowrap; }
.need small { font-size: .72rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.now-fee { margin: 14px 0 0; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.now-fee .bi { color: var(--brand); }

/* The home shelf (partials/deal-block): white panel, one product picked out
   large, four compact tiles. Photos sit in soft wells; one accent colour. */
.shelf { border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px 16px; background: #fff; }
.shelf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shelf-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 2px; }
.shelf-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.shelf-more { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.shelf-more:hover { background: var(--line); color: var(--ink); }
.shelf-body { display: grid; gap: 12px; }
@media (min-width: 768px) {
  .shelf { padding: 22px 24px 20px; }
  .shelf-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  .shelf-hero { grid-template-columns: 200px minmax(0, 1fr); padding: 16px; gap: 20px; }
  .shelf-grid { grid-template-columns: 1fr !important; }
  .shelf-tile:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line) !important; }
}
.shelf-well { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: #f4f5f2; overflow: hidden; color: var(--muted); font-size: 1.8rem; text-decoration: none; }
.shelf-well img { width: 84%; height: 84%; object-fit: contain; }
.shelf h3 { font-size: .86rem; font-weight: 600; line-height: 1.25; margin: 0; }
.shelf h3 a { color: var(--ink); text-decoration: none; }
.shelf-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.shelf-price strong { font-size: 1rem; font-weight: 800; }
.shelf-price s { color: var(--muted); font-size: .82rem; }
.shelf-price small { color: var(--muted); font-size: .72rem; font-weight: 600; }
/* the picked one: photo left, the reason, name, price and ADD right */
.shelf-hero { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--brand-soft); }
.shelf-hero .shelf-well { background: #fff; }
.shelf-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.shelf-why { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .05em; }
.shelf-hero h3 { font-size: 1.02rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shelf-hero .shelf-price strong { font-size: 1.35rem; }
/* four more as compact rows: small photo, name and price, + on the right */
.shelf-grid { display: grid; gap: 0; }
@media (min-width: 576px) { .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } }
.shelf-tile { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-areas: "pic name add" "pic price add"; column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.shelf-tile:last-child { border-bottom: 0; }
@media (min-width: 576px) { .shelf-tile:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.shelf-tile .shelf-well { grid-area: pic; width: 60px; border-radius: 12px; font-size: 1.3rem; }
.shelf-tile h3 { grid-area: name; align-self: end; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.shelf-tile-foot { display: contents; }
.shelf-tile-foot .shelf-price { grid-area: price; align-self: start; }
.shelf-tile-foot .shelf-add { grid-area: add; }
.shelf-add form { margin: 0; }
.shelf-add form[hidden], .shelf-add [hidden] { display: none; }
.shelf-add .pcard-add-btn { min-height: 36px; padding: 0 16px; width: auto; }
.shelf-tile .shelf-add .pcard-add-btn { width: 36px; padding: 0; font-size: 1.2rem; line-height: 1; }
.shelf-add .pcard-stepper { min-width: 92px; }

/* How MyLocal works (home): one panel, four steps joined by a line. Down
   the page on a phone, across it on a wider screen. */
.how { border-radius: 22px; padding: 20px 18px; background: #f5f6f3; }
.how-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 2px; }
.how-head p { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.how-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 18px; }
.how-step:last-child { padding-bottom: 0; }
.how-step::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; border-left: 2px dashed #cfd5cc; }
.how-step:last-child::before { display: none; }
.how-pic { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); position: relative; z-index: 1; }
.how-pic img { width: 40px; height: 40px; object-fit: contain; }
.how-text { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.how-text small { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.how-text strong { font-size: 1rem; font-weight: 700; }
.how-text span { font-size: .86rem; color: var(--muted); line-height: 1.4; }
@media (min-width: 768px) {
  .how { padding: 26px 28px; }
  .how-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .how-step { grid-template-columns: 1fr; padding-bottom: 0; }
  .how-step::before { left: 64px; right: -14px; top: 27px; bottom: auto; border-left: 0; border-top: 2px dashed #cfd5cc; }
}
.cta-band > .cta-pic + div { flex: 1 1 320px; min-width: 0; }

/* PC: the category grids and the six needs were stretched into giant tiles
   and half-empty bars. From 992px: each category grid is one row of six
   small tiles (the two grids side by side), and the needs are one row of
   six compact tiles, picture above the words. Phones are unchanged. */
@media (min-width: 992px) {
  .home-cats-pair { gap: 40px; }
  .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 10px; }
  .cat-pic { border-radius: 14px; font-size: 1.5rem; }
  .cat-pic img { width: 64%; height: 64%; }
  .cat-pic img[src*="/img/cat3d/"] { width: 56%; height: 56%; }
  .cat-name { font-size: .74rem; }
  .cat-badge { font-size: .62rem; padding: 0 5px; bottom: -8px; }
  .cat-all { font-size: 1.3rem; }

  .home-now { padding-top: 26px; }
  .needs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .need { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; min-height: 0; }
  .need img { width: 44px; height: 44px; }
  .need strong { font-size: .92rem; }
  .need small { font-size: .74rem; }
}

/* Desktop header: the search fills the space between the city and the
   links instead of stopping short; the category strip spreads across the
   full width, its first and last items in line with the bar above.
   ("Local shops" is in the bar, so the strip no longer repeats it.) */
@media (min-width: 992px) {
  .site-header .bar { gap: 14px; }
  .site-header .bar > .search-box { max-width: none; margin: 0 12px; }
  .header-actions { gap: 2px; }
  .nav-strip ul { justify-content: space-between; gap: 0; }
  .nav-strip a { padding: 0 8px; }
  .nav-strip li:first-child a { padding-left: 0; }
  .nav-strip li:last-child a { padding-right: 0; }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .nav-strip a { padding: 0 6px; font-size: .82rem; } }

/* ------------------------------------------------------- product page -- */
/* Product page (2026-11-10): no long blank strip beside the buying column.
   PC: the photo column (5 of 12) stays in view while the buying column
   scrolls, and "Why order on MyLocal" runs across the page under both.
   Compare rows: price and ADD side by side in fixed columns, so every
   row's price and button line up. Phones: one column, photo, name, price,
   add, then the rest. Overrides directory.css, so scoped to .pview-page. */
.pview-page .lowest-banner { max-width: none; }
.pview-page .pview-seller { padding: 12px 14px; }
.pview-page .pview-seller .avatar { width: 44px; height: 44px; font-size: 1.05rem; }
.pview-seller-info { display: grid; gap: .3rem; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pview-seller-info .contact-lines { margin: 0; }
.pview-page .offer { padding: 10px 12px; min-width: 0; } /* a long shop name ends in "…", never widens the row */
.pview-page .offer.is-lowest { padding: 9px 11px; } /* its 2px border: same inner box as the others */
.offer-cost { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pview-page .pview-why > h2 { margin-bottom: 12px; }
/* Narrow columns (phone, tablet half): no shop icon, so the name keeps its line. */
@media (max-width: 575.98px), (min-width: 768px) and (max-width: 991.98px) { .pview-page .pview-seller .avatar { display: none; } }
/* Side by side where the column has room: a wide phone, and PC (not the half-width tablet column). */
@media (min-width: 576px) and (max-width: 767.98px), (min-width: 992px) {
  .pview-page .offer-side { display: grid; grid-template-columns: minmax(56px, auto) 84px; align-items: center; column-gap: 14px; }
  .pview-page .offer-side > .offer-add { grid-column: 2; }
}
@media (min-width: 768px) {
  .pview-gallery { position: sticky; top: calc(var(--stick, var(--header-h)) + 16px); align-self: flex-start; }
  .pview-gallery .pview-media { max-height: max(320px, calc(100vh - 250px)); }
  .pview-page .pview-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; padding: 18px 20px; }
  .pview-page .pview-why > h2 { grid-column: 1 / -1; margin: 0; }
  .pview-page .pview-why .pview-why-row + .pview-why-row { margin-top: 0; }
}
