/* Ngwanu Shop — Self-hosted typography, mobile-first boutique storefront,
   3 selectable shop styles (Classic, Bold, Soft), and clean dashboard UI. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f2efe9;
  --border: #e6e2da;
  --border-strong: #cfc9be;
  --text: #161513;
  --text-muted: #5a5750;
  --placeholder-bg: #ebe8e1;
  --placeholder-text: #656159;

  --brand: #1b5e3a;
  --brand-hover: #14492d;
  --brand-fg: #ffffff;
  --soft-bg: #f4f7f5;
  --soft-surface: #fbfcfb;
  --soft-border: #dce5df;

  --topbar-bg: #ffffff;
  --topbar-text: #161513;
  --topbar-border: #e6e2da;

  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;

  --ok-bg: #ecfdf3;
  --ok-border: #abefc6;
  --ok-text: #067647;

  --warn-bg: #fffaeb;
  --warn-border: #fedf89;
  --warn-text: #b54708;

  --font-heading: 'Fraunces', Georgia, Cambria, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --heading-weight: 600;
  --title-scale: 1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --header-h: 58px;
  --bottom-bar-h: 66px;
}

:root[data-theme='dark'] {
  --bg: #131210;
  --surface: #1b1a18;
  --surface-alt: #252420;
  --border: #2f2d28;
  --border-strong: #47443d;
  --text: #f4f2ed;
  --text-muted: #aba69c;
  --placeholder-bg: #262521;
  --placeholder-text: #9d988e;

  --topbar-bg: #1b1a18;
  --topbar-text: #f4f2ed;
  --topbar-border: #2f2d28;

  --danger: #f97066;
  --danger-bg: #2b1615;
  --danger-border: #5c2420;

  --ok-bg: #11241a;
  --ok-border: #1e4b33;
  --ok-text: #75e0a7;

  --warn-bg: #292011;
  --warn-border: #5c4316;
  --warn-text: #fec84b;
}

/* Style 2: Bold (dark header band, sharper corners, stronger heavier type) */
body[data-style='bold'] {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-alt: #ecece8;
  --topbar-bg: #141413;
  --topbar-text: #f7f7f4;
  --topbar-border: #2a2a28;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --heading-weight: 700;
  --title-scale: 1.12;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

:root[data-theme='dark'] body[data-style='bold'] {
  --bg: #0f0f0e;
  --surface: #181816;
  --surface-alt: #232320;
  --topbar-bg: #090908;
  --topbar-text: #f7f7f4;
  --topbar-border: #262623;
}

/* Style 3: Soft (light pastel tint of shop's brand colour, rounder gentle framing) */
body[data-style='soft'] {
  --bg: var(--soft-bg);
  --surface: var(--soft-surface);
  --border: var(--soft-border);
  --topbar-bg: var(--soft-surface);
  --topbar-border: var(--soft-border);
  --heading-weight: 600;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-hover);
}

:root[data-theme='dark'] a:not(.btn):not(.chip):not(.tile-ask-link):not(.back-pill) {
  color: #e8e6df;
  text-decoration-color: var(--border-strong);
}

:root[data-theme='dark'] a:not(.btn):not(.chip):not(.tile-ask-link):not(.back-pill):hover {
  color: #ffffff;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  color: var(--text);
  overflow-wrap: break-word;
}

h1 {
  font-size: calc(1.55rem * var(--title-scale));
}

h2 {
  font-size: calc(1.25rem * var(--title-scale));
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 0.75rem;
  overflow-wrap: break-word;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Icons */
.ico {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Theme toggle shows moon in light mode, sun in dark mode */
:root .theme-toggle .ico-sun {
  display: none;
}
:root .theme-toggle .ico-moon {
  display: inline-block;
}
:root[data-theme='dark'] .theme-toggle .ico-sun {
  display: inline-block;
}
:root[data-theme='dark'] .theme-toggle .ico-moon {
  display: none;
}

/* Layout containers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.narrow-page {
  max-width: 640px;
  padding-top: 24px;
  padding-bottom: 40px;
  flex: 1;
}

.dashboard-main {
  padding-top: 20px;
  padding-bottom: 48px;
  flex: 1;
}

.page-shop {
  padding-bottom: var(--bottom-bar-h);
}

/* Standard Platform / Admin Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--header-h);
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand-wordmark {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  display: block;
  border-radius: 6px;
}

:root .brand-mark-dark {
  display: none;
}

:root[data-theme='dark'] .brand-mark-light {
  display: none;
}

:root[data-theme='dark'] .brand-mark-dark {
  display: block;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Public Shop Slim Fixed Top Bar */
.shop-topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  border-bottom: 1px solid var(--topbar-border);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.shop-topbar.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.shop-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--header-h);
}

.topbar-brand {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--topbar-text);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-brand:hover {
  color: var(--topbar-text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.shop-topbar .icon-btn {
  background: transparent;
  color: var(--topbar-text);
  border-color: transparent;
}

.shop-topbar .icon-btn:hover {
  background: rgba(128, 128, 128, 0.14);
}

/* Buttons — all >= 44px tap targets */
.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.btn:disabled,
.icon-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 44px;
  padding: 0 13px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.btn-primary,
.btn-brand {
  background: var(--brand);
  color: var(--brand-fg);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-brand:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--brand-fg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.icon-btn {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

.icon-btn.icon-only {
  padding: 0;
  width: 44px;
}

.icon-btn:hover {
  background: var(--surface-alt);
}

.btn.desktop-bag-btn {
  display: none;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  font-weight: 700;
}

/* =========================================================
   PUBLIC SHOP HEADER (Cover + Overlapping Circular Logo)
   ========================================================= */
.shop-shell {
  padding-top: var(--header-h);
  flex: 1;
}

.shop-banner-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

body[data-style='bold'] .shop-banner-section {
  border-bottom-width: 2px;
  border-bottom-color: var(--border-strong);
}

.shop-cover-wrap {
  width: 100%;
  background: var(--placeholder-bg);
  overflow: hidden;
}

.shop-cover-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  overflow: hidden;
  background: var(--placeholder-bg);
}

.shop-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 260ms ease;
}

.shop-cover-img.is-loaded {
  opacity: 1;
}

.shop-cover-solid {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 320px;
  background: var(--brand);
  color: var(--brand-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.shop-cover-solid-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 720px;
}

.shop-header-body {
  position: relative;
}

.shop-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -42px;
  margin-bottom: 12px;
  gap: 12px;
}

.shop-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--brand);
  color: var(--brand-fg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-avatar-fallback {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-share-btn {
  margin-bottom: 2px;
}

.shop-title {
  font-size: calc(1.6rem * var(--title-scale));
  margin-bottom: 6px;
}

.shop-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.shop-city-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-weight: 500;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-pill.is-open {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
}

.status-pill.is-closed {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.shop-about-text {
  max-width: 65ch;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* 3 action buttons in a row: WhatsApp, Call, Directions */
.shop-primary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
}

.shop-primary-actions .btn {
  padding: 0 8px;
  font-size: 0.88rem;
  min-width: 0;
}

/* =========================================================
   CATALOG: Search, Wrapping Category Chips, Photo-First Grid
   ========================================================= */
.shop-catalog-section {
  padding-top: 22px;
  padding-bottom: 36px;
}

.catalog-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.search-wrap {
  position: relative;
  max-width: 460px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 42px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

/* Wrapping chip row — NEVER scrolls sideways */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.chip:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
}

.category-section {
  margin-bottom: 34px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.category-heading {
  margin: 0;
  font-size: calc(1.25rem * var(--title-scale));
}

/* Photo-First Product Grid: 2 cols phone, 3 cols tablet, 4 cols desktop */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}

.product-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tile-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--placeholder-bg);
}

.tile-media-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.tile-img.is-loaded {
  opacity: 1;
}

.product-tile.is-out-of-stock .tile-img {
  filter: grayscale(68%);
  opacity: 0.62;
}

.tile-oos-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(20, 20, 18, 0.84);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.tile-quick-add {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--brand);
  color: var(--brand-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.tile-quick-add:hover {
  background: var(--brand-hover);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  padding: 12px;
}

.tile-info {
  padding-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tile-name {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-name a {
  color: var(--text);
  text-decoration: none;
}

.tile-name a:hover {
  text-decoration: underline;
}

.tile-price {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.3;
}

.tile-price strong {
  font-weight: 700;
}

.price-note {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

.tile-ask-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

:root[data-theme='dark'] .tile-ask-link {
  color: #e8e6df;
  text-decoration: underline;
}

.empty-block {
  padding: 24px 0;
  color: var(--text-muted);
}

/* =========================================================
   BOTTOM OF SHOP PAGE: How to order + Hours & Contact
   ========================================================= */
.shop-info-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.shop-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.info-block h2 {
  margin-bottom: 16px;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.steps-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.steps-list p {
  margin: 2px 0 0;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
}

.contact-line .ico {
  margin-top: 3px;
  color: var(--text-muted);
}

.hours-subheading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  margin: 18px 0 10px;
}

.hours-list {
  margin: 0 0 18px;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  max-width: 360px;
}

.hours-list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
}

.hours-list-row.is-today {
  font-weight: 700;
  color: var(--text);
}

.hours-list dt {
  color: var(--text-muted);
}

.hours-list-row.is-today dt {
  color: var(--text);
}

.hours-list dd {
  margin: 0;
}

.bottom-contact-actions {
  margin-top: 14px;
}

/* =========================================================
   DEDICATED PRODUCT PAGE (/:slug/p/:productId)
   ========================================================= */
.product-page-main {
  padding-top: calc(var(--header-h) + 14px);
  padding-bottom: 40px;
  flex: 1;
}

.pd-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 0;
}

.back-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pd-gallery-stage {
  position: relative;
}

.photo-swipe-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-md);
  background: var(--placeholder-bg);
}

.photo-swipe-row::-webkit-scrollbar {
  display: none;
}

.pd-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  background: var(--placeholder-bg);
  overflow: hidden;
}

.pd-slide-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.pd-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 240ms ease;
}

.pd-slide-img.is-loaded {
  opacity: 1;
}

.gallery-arrow {
  display: none;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: var(--brand);
}

.pd-tap-hint {
  text-align: center;
  margin-top: 6px;
  margin-bottom: 0;
}

.pd-title {
  font-size: calc(1.55rem * var(--title-scale));
  margin-bottom: 8px;
}

.pd-price {
  font-size: 1.3rem;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.pd-oos-banner {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.pd-description {
  white-space: pre-line;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 60ch;
}

.pd-buy-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pd-add-btn {
  flex: 1;
}

.pd-wa-btn {
  margin-top: 4px;
}

.more-products-section {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.more-products-section h2 {
  margin-bottom: 16px;
}

/* Full-Screen Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 9, 0.92);
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 94vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 20, 18, 0.72);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close {
  top: 16px;
  right: 16px;
}

.lightbox-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #f4f2ed;
  font-size: 0.9rem;
  font-weight: 600;
}

/* =========================================================
   BAG DRAWER (Slide-up sheet on phone, Side panel on desktop)
   ========================================================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 10, 0.54);
  opacity: 0;
  transition: opacity 200ms ease;
}

.drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 90vh;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 220ms ease, opacity 200ms ease;
}

.drawer.is-open .drawer-panel {
  transform: translateY(0);
  opacity: 1;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  margin: 0;
  font-size: 1.2rem;
}

.drawer-body {
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.drawer-empty {
  padding: 28px 8px;
  text-align: center;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 12px;
}

.cart-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cart-item-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--placeholder-bg);
  flex-shrink: 0;
}

.cart-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--placeholder-text);
  text-align: center;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cart-item-name {
  font-size: 0.94rem;
  line-height: 1.3;
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.12rem;
  margin-bottom: 16px;
}

.checkout-heading {
  font-size: 1.05rem;
  margin: 4px 0 0;
}

.confirm-sheet {
  padding: 16px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.confirm-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.confirm-sheet-title {
  font-size: 1.3rem;
  margin: 0;
}

.confirm-order-no {
  font-size: 1.05rem;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
}

/* Floating Toast */
.shop-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-bar-h) + 14px);
  transform: translateX(-50%);
  z-index: 70;
  background: #161513;
  color: #f4f2ed;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

:root[data-theme='dark'] .shop-toast {
  background: #f4f2ed;
  color: #161513;
}

/* Slim Fixed Bottom Bar on Mobile Phones */
.mobile-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.15fr;
  gap: 8px;
}

.mobile-bar-btn {
  padding: 0 8px;
  font-size: 0.86rem;
  min-width: 0;
}

/* Quantity Stepper */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 44px;
  padding: 0;
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
}

/* =========================================================
   DASHBOARD, ADMIN, AUTH, LEGAL & SHARED PANELS
   ========================================================= */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.status-panel {
  padding: 24px 20px;
}

.closed-message {
  font-size: 1.05rem;
  margin: 12px 0 18px;
}

.confirm-banner {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--text);
}

.notice-banner {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
  font-weight: 500;
}

.alert-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-bar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.new-order-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-card.is-highlighted {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-muted {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-new {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid var(--warn-border);
}

.badge-confirmed {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.badge-done,
.badge-active {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
}

.badge-cancelled,
.badge-paused {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

/* Dashboard Product Add/Edit Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 10, 0.58);
}

.modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0;
  font-size: 1.15rem;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Forms */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.grow {
  flex: 1 1 200px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='time'],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input[type='file'] {
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text);
}

input[type='color'] {
  width: 56px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.colour-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.colour-row input[type='text'] {
  max-width: 140px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
  width: 22px;
  height: 22px;
  margin: 0;
}

/* Cover upload & structured hours editor in Owner Dashboard */
.cover-upload-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cover-preview-box {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  overflow: hidden;
}

.cover-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hours-editor {
  display: grid;
  gap: 8px;
}

.hours-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.hours-day-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.hours-day-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.hours-row input[type='time'] {
  padding: 6px 8px;
  font-size: 0.9rem;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.form-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin: 0;
}

.toast {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-bottom: 14px;
}

.back-link {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* Dashboard Tabs & Lists */
.tab-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.tab-btn {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
}

.section-spacer {
  margin-top: 24px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.order-items-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.94rem;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-dash-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.product-dash-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--placeholder-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--placeholder-text);
  text-align: center;
  padding: 4px;
}

.product-dash-info {
  min-width: 0;
  flex: 1;
}

.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.thumb-item {
  width: 84px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thumb-item img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.logo-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.logo-preview-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--placeholder-text);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Directory & Legal prose */
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.shop-directory-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.shop-directory-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.shop-dir-link {
  font-weight: 600;
  text-decoration: none;
}

.prose h2 {
  margin-top: 20px;
}

.empty-state {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-owner-link {
  font-size: 0.8rem;
  opacity: 0.82;
}

/* =========================================================
   TABLET (768px+)
   ========================================================= */
@media (min-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .shop-cover-frame,
  .shop-cover-solid {
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }

  .shop-avatar {
    width: 96px;
    height: 96px;
  }

  .shop-avatar-row {
    margin-top: -48px;
  }

  .shop-title {
    font-size: calc(2rem * var(--title-scale));
  }

  .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .shop-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

  .pd-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: start;
  }

  .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.92;
  }

  .gallery-arrow:hover {
    opacity: 1;
  }

  .gallery-prev {
    left: 12px;
  }

  .gallery-next {
    right: 12px;
  }

  .tab-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .btn.desktop-bag-btn {
    display: inline-flex;
  }

  .mobile-bottom-bar {
    display: none;
  }

  .page-shop {
    padding-bottom: 0;
  }

  .shop-toast {
    bottom: 24px;
  }

  /* Bag opens as a right-side panel on desktop */
  .drawer {
    align-items: stretch;
    justify-content: flex-end;
  }

  .drawer-panel {
    width: 440px;
    max-width: 92vw;
    max-height: 100vh;
    height: 100%;
    border-top: none;
    border-left: 1px solid var(--border);
    border-radius: 0;
    transform: translateX(32px);
  }

  .drawer.is-open .drawer-panel {
    transform: translateX(0);
  }

  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal-sheet {
    border-radius: var(--radius-lg);
    max-height: 86vh;
  }
}

/* =========================================================
   DESKTOP (1080px / 1280px+)
   ========================================================= */
@media (min-width: 1080px) {
  .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .tile-img,
  .shop-cover-img,
  .pd-slide-img {
    opacity: 1;
  }
}

/* =========================================================================
   Dashboard + admin usability pass (20 Nov 2026)
   ========================================================================= */

.visually-hidden-file {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
}
.upload-btn { cursor: pointer; }
.upload-btn .ico { flex-shrink: 0; }
.visually-hidden-file:focus-visible + .upload-btn,
.upload-btn:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.upload-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.field:has(> .visually-hidden-file) { position: relative; }
.field-label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.panel-title { font-size: 1.05rem; margin: 0 0 4px; }
.tip { margin: -6px 0 14px; }
.btn .ico { flex-shrink: 0; }

.btn-link {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.btn-link:hover { color: var(--text); background: transparent; }
.btn-danger-text { color: var(--danger); }
.btn-danger-text:hover { color: var(--danger); }

/* Admin "Set up shop" bar */
.admin-mode-bar {
  background: #1d1d1b;
  color: #fff;
  font-size: 0.9rem;
}
.admin-mode-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.btn-on-dark {
  background: #fff;
  color: #1d1d1b;
  border-color: #fff;
  min-height: 40px;
}
.btn-on-dark:hover { background: #ecebe7; color: #1d1d1b; }

/* Dashboard header: full shop name, icon actions */
.dash-header .header-inner { gap: 10px; }
.dash-header .header-title-group { min-width: 0; flex: 1; }
.dash-shop-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dash-header .header-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dash-header .icon-btn { width: 44px; padding: 0; }
.dash-header .theme-toggle { width: auto; padding: 0 10px; }

/* Tabs: one row of four on every screen */
.dash-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}
.dash-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 6px 2px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.dash-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dash-tab.is-active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.tab-count {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
}

/* Setup checklist */
.setup-card { border-color: var(--brand); }
.setup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.setup-head h2 { margin: 0; font-size: 1.1rem; }
.setup-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-alt);
  margin: 10px 0 8px;
  overflow: hidden;
}
.setup-progress span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width 300ms ease; }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.setup-item:disabled { cursor: default; color: var(--text-muted); opacity: 1; }
.setup-item:not(:disabled) span:last-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.setup-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.setup-list li.is-done .setup-mark { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.setup-list li.is-done span:last-child { text-decoration: line-through; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Shop link card */
.link-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.link-card-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 180px; }
.link-card-text strong { overflow-wrap: anywhere; font-size: 0.98rem; }
.link-card-actions { display: flex; gap: 8px; }

/* Order alerts card */
.alert-bar-top { justify-content: space-between; flex-wrap: nowrap; align-items: flex-start; }
.alert-bar-top .field-hint { margin: 2px 0 0; }
.alert-bar-top .btn { flex-shrink: 0; }

/* Order cards */
.order-card { gap: 12px; }
.order-card.order-new { border-left: 4px solid var(--warn-text); }
.order-card.order-confirmed { border-left: 4px solid var(--brand); }
.order-card.order-done, .order-card.order-cancelled { opacity: 0.8; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-head .muted { margin: 2px 0 0; }
.order-lines { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.order-line-price { white-space: nowrap; color: var(--text-muted); }
.order-total {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}
.order-extra { background: var(--surface-alt); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 0.9rem; }
.order-extra p { margin: 0; }
.order-extra p + p { margin-top: 4px; }
.order-contact, .order-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.order-contact .btn { flex: 1 1 auto; }
.order-steps .btn-primary { flex: 1 1 160px; }

/* Product rows */
.product-row { flex-direction: row; align-items: center; gap: 10px; padding: 10px; }
.product-row.is-out .product-dash-thumb { filter: grayscale(0.8); opacity: 0.7; }
.product-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.product-row-main .product-dash-thumb { width: 64px; height: 64px; }
.product-dash-thumb.is-empty { font-size: 0.7rem; }
.product-dash-info { display: flex; flex-direction: column; gap: 2px; }
.product-row-name { font-weight: 600; overflow-wrap: anywhere; }
.product-row-price { font-size: 0.92rem; }
.product-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.reorder-arrows { display: flex; gap: 4px; }
.icon-btn.icon-btn-sm { min-width: 40px; min-height: 40px; width: 40px; padding: 0; font-size: 1rem; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 40px; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  transition: background-color 160ms ease;
  flex-shrink: 0;
}
.switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease;
}
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch-text { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

/* Empty states */
.empty-state { text-align: center; padding: 28px 18px; }
.empty-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; }
.empty-state .btn { margin-top: 12px; }

details.panel summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
details.panel[open] summary { margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  .setup-progress span, .switch-track, .switch-track::after { transition: none; }
}

@media (max-width: 380px) {
  .dash-tab { font-size: 0.72rem; }
  .product-row { flex-wrap: wrap; }
  .product-row-side { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
}

/* Opening hours: on phones put the day on its own line so times are never cut off */
@media (max-width: 480px) {
  .hours-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    row-gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .hours-row .hours-day-toggle { grid-column: 1 / -1; min-height: 36px; }
  .hours-row input[type='time'] { width: 100%; min-width: 0; }
}

/* Platform admin */
.stat-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .stat-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.login-details {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 10px 0 0;
}
.slug-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.slug-input:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.slug-prefix {
  display: flex;
  align-items: center;
  padding: 0 4px 0 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--surface-alt);
  border-right: 1px solid var(--border);
}
.slug-input input { border: 0; border-radius: 0; flex: 1; min-width: 0; outline: none; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.choice small { color: var(--text-muted); font-size: 0.8rem; }
.choice input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--soft-bg); }
.choice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.admin-section-head {
  align-items: flex-end;
  margin-bottom: 14px;
}

.admin-section-head h1 {
  margin-bottom: 2px;
}

.admin-section-head p {
  margin: 0;
}

.admin-kpis .stat {
  border-top: 3px solid var(--border-strong);
}

.admin-kpis .stat-accent-ok {
  border-top-color: var(--ok-text);
}

.admin-kpis .stat-accent-warn {
  border-top-color: var(--warn-text);
}

.admin-kpis .stat-accent-off {
  border-top-color: var(--danger);
}

.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.admin-toolbar #biz-search {
  flex: 1 1 260px;
  min-width: 0;
}

.admin-filter-chips {
  margin: 0;
}

@media (min-width: 820px) {
  .admin-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
}

.biz-card {
  gap: 12px;
  padding: 18px 20px;
}

.biz-card-title {
  min-width: 0;
}

.biz-link {
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.biz-facts {
  margin: 0;
}

.paid-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.paid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.paid-actions input[type='date'] {
  min-height: 38px;
  padding: 6px 10px;
  max-width: 158px;
  font-size: 0.88rem;
}

.biz-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.biz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.biz-actions .btn-primary {
  flex: 0 0 auto;
}

.biz-more {
  margin-left: auto;
}

.biz-more summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  list-style: none;
}

.biz-more summary::-webkit-details-marker {
  display: none;
}

.biz-more summary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.biz-more-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* Platform home page */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.home-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--border); background: var(--surface); }
.home-hero-inner { max-width: 760px; }
.home-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; margin: 6px 0 14px; letter-spacing: -0.01em; }
.home-lead { font-size: 1.08rem; color: var(--text-muted); max-width: 60ch; margin: 0 0 8px; }
.home-section { padding-top: 36px; }
.home-section h2 { font-size: 1.5rem; margin: 0 0 16px; }
.home-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .home-steps { grid-template-columns: repeat(3, 1fr); } }
.home-steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.home-steps p { margin: 4px 0 0; font-size: 0.94rem; }
.home-step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: var(--brand-fg);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.home-shop-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .home-shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .home-shop-grid { grid-template-columns: repeat(3, 1fr); } }
.home-shop-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  transition: border-color 140ms ease;
}
.home-shop-card:hover { border-color: var(--border-strong); }
.home-shop-cover { display: block; aspect-ratio: 16 / 9; background: var(--placeholder-bg); }
.home-shop-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-shop-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; }
.home-shop-logo {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: var(--brand); color: var(--brand-fg); font-family: var(--font-heading); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: -30px;
  border: 3px solid var(--surface);
}
.home-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.home-shop-text { display: flex; flex-direction: column; min-width: 0; }
.home-owner { display: grid; gap: 12px; margin-bottom: 40px; }
@media (min-width: 768px) { .home-owner { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.home-owner h2 { margin: 0 0 4px; font-size: 1.25rem; }
.home-owner p { margin: 0; }
.home-owner-form { display: flex; flex-wrap: wrap; gap: 8px; }
.home-owner-form .slug-input { flex: 1 1 220px; }

/* Selected dashboard tab: readable in light and dark, brand bar underneath */
.dash-tab.is-active { color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 -3px 0 var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .dash-tab.is-active { box-shadow: inset 0 -3px 0 #4fa06f; } }
:root[data-theme='dark'] .dash-tab.is-active { box-shadow: inset 0 -3px 0 #4fa06f; }

/* Logos on admin business cards */
.biz-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.biz-logo {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-alt);
  display: inline-flex; align-items: center; justify-content: center;
}
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-logo.is-empty { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; }
.biz-actions { position: relative; }

/* Product options: owner editor */
.pf-options { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-alt); }
.pf-options summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; gap: 6px; }
.pf-options[open] summary { margin-bottom: 6px; }
.pf-options .field-hint { margin-bottom: 10px; }
.pf-option-rows { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.pf-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
}
.pf-option-row input[type='text'], .pf-option-row input[type='number'] { min-height: 40px; padding: 6px 8px; }
.pf-opt-stock { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; white-space: nowrap; }
.pf-opt-stock input { width: 18px; height: 18px; margin: 0; }
@media (max-width: 420px) {
  .pf-option-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .pf-option-row .pf-opt-label { grid-column: 1 / -1; }
}

/* Product options: customer picker */
.pd-options { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.pd-options legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.pd-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-option { position: relative; cursor: pointer; }
.pd-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-option span {
  display: flex; flex-direction: column; gap: 1px;
  min-height: 48px; min-width: 96px; padding: 8px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
}
.pd-option small { font-size: 0.8rem; color: var(--text-muted); }
.pd-option input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pd-option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pd-option.is-out { cursor: not-allowed; }
.pd-option.is-out span { opacity: 0.55; text-decoration: line-through; }
.pd-range { margin: -4px 0 12px; }
.tile-options { margin: 2px 0 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .pd-option input:checked + span,
  :root:not([data-theme='light']) .choice input:checked + span { border-color: #4fa06f; box-shadow: 0 0 0 1px #4fa06f; }
}
:root[data-theme='dark'] .pd-option input:checked + span,
:root[data-theme='dark'] .choice input:checked + span { border-color: #4fa06f; box-shadow: 0 0 0 1px #4fa06f; }

/* Admin search box (styled on its own so the shop search keeps its icon padding) */
#biz-search {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

/* Home: contact Ngwanu Tech */
.home-contact { display: grid; gap: 12px; }
@media (min-width: 768px) { .home-contact { grid-template-columns: 1fr auto; align-items: center; } }
.home-contact h2 { margin: 0 0 4px; font-size: 1.25rem; }
.home-contact p { margin: 0; }
.home-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }


/* =========================================================
   HOMEPAGE FLAGSHIP SHOWCASE (Obsidian + Emerald, Shopify/Bumpa-grade)
   Zero gradients, zero blobs, crisp light & dark mode, 0px overflow.
   ========================================================= */
.home-header-dark {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #0e1111;
  border-bottom: 1px solid #222625;
  color: #f4f2ed;
}

.home-dark-brand {
  color: #ffffff;
}

.home-header-dark .home-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.home-header-dark .home-nav a {
  color: #b5b8b4;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.home-header-dark .home-nav a:hover {
  color: #ffffff;
}

.home-dark-toggle {
  background: #181c1b;
  color: #e8e9e6;
  border-color: #2c312f;
}

.home-dark-toggle:hover {
  background: #232826;
  color: #ffffff;
}

.home-header-cta {
  display: none;
}

/* Flagship Obsidian Hero */
.home-hero-obsidian {
  background: #0e1111;
  color: #f4f2ed;
  border-bottom: 1px solid #222625;
  padding: 36px 0 48px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #171c1b;
  border: 1px solid #29312e;
  color: #d6dad7;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00dc82;
  flex-shrink: 0;
}

.home-hero-title {
  color: #ffffff;
  font-size: clamp(2.25rem, 6.2vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.home-lead {
  font-size: 1.06rem;
  line-height: 1.6;
  color: #b7bab6;
  max-width: 52ch;
  margin-bottom: 26px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.98rem;
}

.btn-cta-emerald {
  background: #00dc82;
  color: #080c0a;
  border-color: #00dc82;
  font-weight: 700;
}

.btn-cta-emerald:hover {
  background: #10c77b;
  border-color: #10c77b;
  color: #080c0a;
}

.btn-cta-outline {
  background: transparent;
  color: #ffffff;
  border-color: #3a403d;
}

.btn-cta-outline:hover {
  background: #1a1f1e;
  border-color: #545c58;
  color: #ffffff;
}

.home-hero-specs {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid #222625;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.88rem;
  color: #c7cac6;
}

.home-hero-specs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-hero-specs .ico {
  color: #00dc82;
}

/* Interactive Hero Phone Stage */
.home-hero-visual {
  display: flex;
  justify-content: center;
}

.hero-stage {
  width: 100%;
  max-width: 368px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #171c1b;
  border: 1px solid #29312e;
}

.hero-switch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a9ada9;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
  transition: background 0.15s ease, color 0.15s ease;
}

.hero-switch-btn:hover {
  color: #ffffff;
}

.hero-switch-btn.is-active {
  background: #00dc82;
  color: #080c0a;
}

.hero-phone-slide {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-phone-slide[hidden] {
  display: none;
}

.hero-phone-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.phone-mockup {
  background: #181c1b;
  border-radius: 28px;
  padding: 10px;
  border: 1px solid #2f3533;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
}

.phone-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 8px;
  color: #a8aca8;
  font-size: 0.72rem;
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00dc82;
  flex-shrink: 0;
}

.phone-url {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-open-tag {
  color: #00dc82;
  font-weight: 700;
  flex-shrink: 0;
}

.phone-screen {
  background: #ffffff;
  color: #161513;
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 12px;
}

.phone-cover {
  aspect-ratio: 16 / 9;
  background: #e9e6de;
  overflow: hidden;
}

.phone-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-shop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 10px;
  margin-top: -18px;
}

.phone-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1a5c38;
  color: #ffffff;
  border: 3px solid #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-shop-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 18px;
}

.phone-shop-meta strong {
  font-size: 0.92rem;
  line-height: 1.2;
  color: #161513;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: #166534;
  font-weight: 600;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 10px;
}

.phone-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.phone-tile-img {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #eceae3;
}

.phone-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-plus {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a5c38;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.phone-tile-name {
  font-size: 0.76rem;
  color: #2e2d2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-tile-price {
  font-size: 0.82rem;
  color: #161513;
}

.phone-wa-pill {
  margin: 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eaf8f1;
  border: 1px solid #bde5cf;
  color: #14532d;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* Incoming WhatsApp Order Alert Card under Phone */
.hero-order-toast {
  background: #171c1b;
  border: 1px solid #2c3531;
  border-radius: 14px;
  padding: 12px 14px;
  color: #f4f2ed;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-order-toast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
}

.hero-toast-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00dc82;
  font-weight: 700;
}

.hero-toast-num {
  color: #9fa39f;
  font-weight: 600;
}

.hero-order-toast-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.hero-order-toast-body strong {
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-toast-price {
  color: #00dc82;
  font-weight: 700;
  flex-shrink: 0;
}

/* Trades strip */
.home-trades-band {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 0;
}

.home-trades-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.home-trades-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.home-trades-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Section rhythm */
.home-section {
  padding-top: 56px;
  padding-bottom: 8px;
}

.home-surface-band {
  margin-top: 52px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.home-section-head {
  margin-bottom: 26px;
  max-width: 62ch;
}

.home-section-head h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Before vs After DM Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.compare-old {
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.compare-new {
  background: #0e1111;
  color: #f4f2ed;
  border: 1px solid #262e2b;
  box-shadow: 0 18px 40px rgba(14, 17, 17, 0.14);
}

.compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compare-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.compare-tag-muted {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.compare-meta-muted {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.compare-tag-emerald {
  background: #00dc82;
  color: #080c0a;
}

.compare-note-emerald {
  font-size: 0.82rem;
  font-weight: 600;
  color: #00dc82;
}

.chat-sim {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chat-bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.8;
  flex-shrink: 0;
}

.chat-in {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-out {
  align-self: flex-end;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-bottom-right-radius: 4px;
}

.wa-receipt-dark {
  background: #171c1b;
  border: 1px solid #2b3531;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wa-receipt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
}

.wa-receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #00dc82;
  font-weight: 700;
}

.wa-receipt-time {
  font-size: 0.78rem;
  color: #9ba19e;
}

.wa-receipt-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #262f2b;
  border-bottom: 1px solid #262f2b;
  font-size: 0.9rem;
  color: #e4e7e5;
}

.wa-receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.wa-receipt-line strong {
  color: #ffffff;
  white-space: nowrap;
}

.wa-receipt-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  color: #b5bab7;
}

.wa-total-amount {
  font-size: 1.15rem;
  color: #00dc82;
  font-weight: 700;
}

.compare-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.82rem;
  padding-top: 12px;
}

.compare-foot-old {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.compare-foot-new {
  border-top: 1px solid #232a27;
  color: #d2d7d4;
}

.compare-foot-new span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare-foot-new .ico {
  color: #00dc82;
}

/* Sample shop card polish */
.home-shop-cover {
  position: relative;
  overflow: hidden;
}

.home-shop-type {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(14, 17, 17, 0.85);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.home-shop-card {
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.home-shop-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.home-shop-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Visual Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.bento-obsidian {
  background: #0e1111;
  color: #f4f2ed;
  border-color: #262e2b;
  box-shadow: 0 16px 36px rgba(14, 17, 17, 0.14);
}

.bento-obsidian h3 {
  color: #ffffff;
}

.bento-eyebrow-emerald {
  color: #00dc82;
}

.bento-muted-dark {
  color: #aeb4b0;
  margin: 0;
}

.bento-copy h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}

.bento-copy p:last-child {
  margin: 0;
}

/* Bento 1: Interactive Product Options Demo */
.mini-opt-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-opt-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.mini-opt-title strong {
  display: block;
}

.mini-opt-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mini-opt-price {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand);
  white-space: nowrap;
}

.mini-opt-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-opt {
  appearance: none;
  text-align: left;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.84rem;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.mini-opt:hover:not(:disabled) {
  border-color: var(--brand);
}

.mini-opt small {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.mini-opt.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  background: var(--ok-bg);
}

.mini-opt.is-out {
  opacity: 0.5;
  text-decoration: line-through;
  cursor: not-allowed;
}

.mini-opt-btn {
  appearance: none;
  border: 0;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
  background: var(--brand);
  color: var(--brand-fg);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.15s ease;
}

.mini-opt-btn:hover {
  opacity: 0.92;
}

/* Bento 2: Obsidian Owner Dashboard Demo */
.mini-dash-dark {
  background: #171c1b;
  border: 1px solid #2b3531;
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.mini-dash-push-dark {
  background: #0b1913;
  border: 1px solid #1d4433;
  color: #dff7ec;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-push-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00dc82;
  flex-shrink: 0;
}

.mini-dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-dash-row strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
}

.mini-dash-sub {
  display: block;
  font-size: 0.8rem;
  color: #a4aaa7;
}

.mini-dash-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.mini-dash-status.is-new {
  background: #2f230e;
  color: #fec84b;
  border: 1px solid #634818;
}

.mini-dash-status.is-confirmed {
  background: #0d2b1e;
  color: #00dc82;
  border: 1px solid #1e6245;
}

.mini-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-dash-btn {
  appearance: none;
  border: 1px solid #00dc82;
  background: #00dc82;
  color: #080c0a;
  font-family: var(--font-body);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.mini-dash-btn:hover {
  background: #10c77b;
}

.mini-dash-btn-ghost {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid #323b38;
  background: #1d2321;
  color: #d5dad7;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Bento 3: Interactive Style Switcher Demo */
.style-demo-controls {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 12px;
}

.style-demo-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
}

.style-demo-btn.is-active {
  background: var(--brand);
  color: var(--brand-fg);
  border-color: var(--brand);
}

.mini-style-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-radius 0.15s ease;
}

.mini-style-banner {
  height: 30px;
  background: var(--brand);
}

.mini-style-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.mini-style-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-fg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-style-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.96rem;
}

.mini-style-sub {
  font-size: 0.76rem;
  color: var(--ok-text);
  font-weight: 600;
}

.mini-style-cta {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-style-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.mini-style-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
}

.mini-style-item span {
  color: var(--text-muted);
}

.mini-style-preview[data-preview-style='bold'] {
  border-radius: 4px;
  border-width: 2px;
  border-color: var(--text);
}
.mini-style-preview[data-preview-style='bold'] .mini-style-banner {
  background: #141413;
}
.mini-style-preview[data-preview-style='bold'] .mini-style-name {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mini-style-preview[data-preview-style='bold'] .mini-style-cta,
.mini-style-preview[data-preview-style='bold'] .mini-style-dot,
.mini-style-preview[data-preview-style='bold'] .mini-style-item {
  border-radius: 4px;
}

.mini-style-preview[data-preview-style='soft'] {
  border-radius: 20px;
  background: var(--soft-bg);
}
.mini-style-preview[data-preview-style='soft'] .mini-style-cta {
  border-radius: 999px;
}
.mini-style-preview[data-preview-style='soft'] .mini-style-item {
  border-radius: 14px;
}

/* Bento 4: Nigeria Specs 2x2 */
.bento-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bento-spec {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bento-spec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 2px;
}
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bento-spec strong {
  font-size: 0.96rem;
}

/* 3-Step Onboarding v3 */
.home-steps-v3 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.home-steps-v3 li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0e1111;
  color: #00dc82;
  font-weight: 800;
  font-size: 0.88rem;
}

.home-steps-v3 h3 {
  font-size: 1.15rem;
  margin: 0;
}

.home-steps-v3 p {
  margin: 0;
}

/* FAQ Accordion */
#faq .home-section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 12px 0 0;
  line-height: 1.6;
}

/* Closing Obsidian CTA Band */
.home-cta-band {
  background: #0e1111;
  color: #f4f2ed;
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid #262c2a;
}

.home-cta-copy h2 {
  color: #ffffff;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin-bottom: 10px;
}

.home-cta-copy p {
  color: #b7bab6;
  margin: 0;
  max-width: 54ch;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 640px) {
  .bento-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .home-header-dark .home-nav {
    display: flex;
  }

  .home-header-cta {
    display: inline-flex;
  }

  .home-hero-obsidian {
    padding: 64px 0 72px;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 52px;
  }

  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

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

  .bento-wide {
    grid-column: span 7;
  }

  .bento-narrow {
    grid-column: span 5;
  }

  .home-steps-v3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .home-cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 46px 48px;
  }
}


/* Home menu + hero follow the phone's light/dark setting (dark styles above are for dark mode) */
:root[data-theme='light'] .home-header-dark { background: var(--surface); border-bottom-color: var(--border); color: var(--text); }
:root[data-theme='light'] .home-dark-brand { color: var(--text); }
:root[data-theme='light'] .home-header-dark .home-nav a { color: var(--text-muted); }
:root[data-theme='light'] .home-header-dark .home-nav a:hover { color: var(--text); }
:root[data-theme='light'] .home-dark-toggle { background: var(--surface); color: var(--text); border-color: var(--border); }
:root[data-theme='light'] .home-dark-toggle:hover { background: var(--surface-alt); color: var(--text); }
:root[data-theme='light'] .home-hero-obsidian { background: var(--surface); color: var(--text); border-bottom-color: var(--border); }
:root[data-theme='light'] .hero-pill { background: var(--surface-alt); border-color: var(--border); color: var(--text-muted); }
:root[data-theme='light'] .hero-pill-dot { background: var(--brand); }
:root[data-theme='light'] .home-hero-title { color: var(--text); }
:root[data-theme='light'] .home-lead { color: var(--text-muted); }
:root[data-theme='light'] .btn-cta-emerald { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
:root[data-theme='light'] .btn-cta-emerald:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-fg); }
:root[data-theme='light'] .btn-cta-outline { color: var(--text); border-color: var(--border-strong); }
:root[data-theme='light'] .btn-cta-outline:hover { background: var(--surface-alt); border-color: var(--border-strong); color: var(--text); }
:root[data-theme='light'] .home-hero-specs { border-top-color: var(--border); color: var(--text-muted); }
:root[data-theme='light'] .home-hero-specs .ico { color: var(--brand); }
:root[data-theme='light'] .hero-switcher { background: var(--surface-alt); border-color: var(--border); }
:root[data-theme='light'] .hero-switch-btn { color: var(--text-muted); }
:root[data-theme='light'] .hero-switch-btn:hover { color: var(--text); }
:root[data-theme='light'] .hero-switch-btn.is-active { background: var(--brand); color: var(--brand-fg); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .home-header-dark { background: var(--surface); border-bottom-color: var(--border); color: var(--text); }
  :root:not([data-theme]) .home-dark-brand { color: var(--text); }
  :root:not([data-theme]) .home-header-dark .home-nav a { color: var(--text-muted); }
  :root:not([data-theme]) .home-header-dark .home-nav a:hover { color: var(--text); }
  :root:not([data-theme]) .home-dark-toggle { background: var(--surface); color: var(--text); border-color: var(--border); }
  :root:not([data-theme]) .home-dark-toggle:hover { background: var(--surface-alt); color: var(--text); }
  :root:not([data-theme]) .home-hero-obsidian { background: var(--surface); color: var(--text); border-bottom-color: var(--border); }
  :root:not([data-theme]) .hero-pill { background: var(--surface-alt); border-color: var(--border); color: var(--text-muted); }
  :root:not([data-theme]) .hero-pill-dot { background: var(--brand); }
  :root:not([data-theme]) .home-hero-title { color: var(--text); }
  :root:not([data-theme]) .home-lead { color: var(--text-muted); }
  :root:not([data-theme]) .btn-cta-emerald { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
  :root:not([data-theme]) .btn-cta-emerald:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-fg); }
  :root:not([data-theme]) .btn-cta-outline { color: var(--text); border-color: var(--border-strong); }
  :root:not([data-theme]) .btn-cta-outline:hover { background: var(--surface-alt); border-color: var(--border-strong); color: var(--text); }
  :root:not([data-theme]) .home-hero-specs { border-top-color: var(--border); color: var(--text-muted); }
  :root:not([data-theme]) .home-hero-specs .ico { color: var(--brand); }
  :root:not([data-theme]) .hero-switcher { background: var(--surface-alt); border-color: var(--border); }
  :root:not([data-theme]) .hero-switch-btn { color: var(--text-muted); }
  :root:not([data-theme]) .hero-switch-btn:hover { color: var(--text); }
  :root:not([data-theme]) .hero-switch-btn.is-active { background: var(--brand); color: var(--brand-fg); }
}

/* =========================================================
   Home page follows the phone's light / dark setting.
   Dark mode keeps the obsidian look above; light mode below.
   The dark "Ready to put your shop online?" band stays dark on purpose.
   ========================================================= */
:root[data-theme='light'] .home-header-dark { background: var(--surface); border-bottom-color: var(--border); color: var(--text); }
:root[data-theme='light'] .home-dark-brand { color: var(--text); }
:root[data-theme='light'] .home-header-dark .home-nav a { color: var(--text-muted); }
:root[data-theme='light'] .home-header-dark .home-nav a:hover { color: var(--text); }
:root[data-theme='light'] .home-dark-toggle { background: var(--surface); color: var(--text); border-color: var(--border); }
:root[data-theme='light'] .home-dark-toggle:hover { background: var(--surface-alt); color: var(--text); }
:root[data-theme='light'] .home-hero-obsidian { background: var(--surface); color: var(--text); border-bottom-color: var(--border); }
:root[data-theme='light'] .hero-pill { background: var(--surface-alt); border-color: var(--border); color: var(--text-muted); }
:root[data-theme='light'] .hero-pill-dot { background: var(--brand); }
:root[data-theme='light'] .home-hero-title { color: var(--text); }
:root[data-theme='light'] .home-lead { color: var(--text-muted); }
:root[data-theme='light'] .btn-cta-emerald { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); }
:root[data-theme='light'] .btn-cta-emerald:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-fg); }
:root[data-theme='light'] .home-hero-obsidian .btn-cta-outline { color: var(--text); border-color: var(--border-strong); }
:root[data-theme='light'] .home-hero-obsidian .btn-cta-outline:hover { background: var(--surface-alt); border-color: var(--border-strong); color: var(--text); }
:root[data-theme='light'] .home-hero-specs { border-top-color: var(--border); color: var(--text-muted); }
:root[data-theme='light'] .home-hero-specs .ico { color: var(--brand); }
:root[data-theme='light'] .hero-switcher { background: var(--surface-alt); border-color: var(--border); }
:root[data-theme='light'] .hero-switch-btn { color: var(--text-muted); }
:root[data-theme='light'] .hero-switch-btn:hover { color: var(--text); }
:root[data-theme='light'] .hero-switch-btn.is-active { background: var(--brand); color: var(--brand-fg); }
:root[data-theme='light'] .phone-mockup { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
:root[data-theme='light'] .hero-order-toast { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
:root[data-theme='light'] .hero-toast-badge,
:root[data-theme='light'] .hero-toast-price { color: var(--brand); }
:root[data-theme='light'] .hero-toast-num { color: var(--text-muted); }
:root[data-theme='light'] .hero-order-toast-body strong { color: var(--text); }

/* Hero preview: say plainly what each part is */
.hero-step-label {
  display: flex; align-items: center; gap: 8px; align-self: flex-start;
  margin: 0; font-size: 0.86rem; font-weight: 600; color: #c7cac6;
}
.hero-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #00dc82; color: #080c0a; font-size: 0.78rem; font-weight: 700;
}
.hero-open-link {
  align-self: center; font-size: 0.9rem; font-weight: 600; color: #00dc82;
  text-decoration: underline; text-underline-offset: 3px; min-height: 36px;
  display: inline-flex; align-items: center;
}
.hero-order-toast-body { align-items: baseline; }
.hero-order-toast-body span:first-child { color: inherit; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hero-toast-foot { margin: 2px 0 0; font-size: 0.78rem; color: #9fa39f; }
:root[data-theme='light'] .hero-step-label { color: var(--text-muted); }
:root[data-theme='light'] .hero-step-num { background: var(--brand); color: var(--brand-fg); }
:root[data-theme='light'] .hero-open-link { color: var(--brand); }
:root[data-theme='light'] .hero-toast-foot { color: var(--text-muted); }

/* The "Ready to put your shop online?" strip is dark in BOTH themes, so its
   label and Call button must always use light-on-dark colours. */
:root .home-cta-band .hero-pill,
:root[data-theme='light'] .home-cta-band .hero-pill { background: #171c1b; border-color: #29312e; color: #d6dad7; }
:root .home-cta-band .hero-pill-dot,
:root[data-theme='light'] .home-cta-band .hero-pill-dot { background: #00dc82; }
:root .home-cta-band .btn-cta-outline,
:root[data-theme='light'] .home-cta-band .btn-cta-outline { background: transparent; color: #ffffff; border-color: #545c58; }
:root .home-cta-band .btn-cta-outline:hover,
:root[data-theme='light'] .home-cta-band .btn-cta-outline:hover { background: #1a1f1e; color: #ffffff; border-color: #6b736f; }
:root .home-cta-band .btn-cta-outline .ico,
:root[data-theme='light'] .home-cta-band .btn-cta-outline .ico { color: #ffffff; }
.home-cta-band .hero-pill { margin-bottom: 14px; }

/* Auto system light/dark mode only: hide manual theme toggle buttons */
[data-theme-toggle] { display: none !important; }

/* =========================================================
   SHOP & DASHBOARD UPGRADES: Delivery Picker, Bank Card, QR Code, Mobile Hero Polish
   ========================================================= */
@media (max-width: 767px) {
  .header-share-btn {
    display: none;
  }
  .shop-cover-wrap {
    aspect-ratio: 16 / 10;
  }
}

.delivery-picker {
  border: 0;
  padding: 12px 0 4px;
  margin: 0;
  border-top: 1px solid var(--border);
}

.delivery-picker legend {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
}

.delivery-option-list {
  display: grid;
  gap: 8px;
}

.delivery-option {
  position: relative;
  cursor: pointer;
}

.delivery-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.delivery-option-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.92rem;
}

.delivery-option input:checked + .delivery-option-box {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  background: var(--ok-bg);
}

.delivery-option-fee {
  white-space: nowrap;
}

.confirm-bank-box {
  width: 100%;
  text-align: left;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirm-bank-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.confirm-bank-dl {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.confirm-bank-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.confirm-bank-dl dt {
  color: var(--text-muted);
}

.confirm-bank-dl dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.bank-num-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
}

.order-delivery-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.delivery-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 480px) {
  .delivery-edit-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .delivery-edit-row .del-label {
    grid-column: 1 / -1;
  }
}

.qr-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.qr-preview-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  display: inline-flex;
}

@media (min-width: 640px) {
  .qr-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.stat-sales .stat-num {
  color: var(--brand);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
}

/* =========================================================
   HOMEPAGE PRICING SECTION
   ========================================================= */
.pricing-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
}

.pricing-head h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pricing-head p:last-of-type {
  margin-bottom: 20px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
}

.billing-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
}

.billing-btn.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.billing-save {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.pricing-featured {
  background: #0e1111;
  color: #f4f2ed;
  border-color: #28332e;
  box-shadow: 0 20px 44px rgba(14, 17, 17, 0.18);
}

.pricing-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pricing-plan-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.pricing-featured .pricing-plan-name {
  color: #ffffff;
}

.pricing-popular {
  padding: 4px 10px;
  border-radius: 999px;
  background: #00dc82;
  color: #080c0a;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-desc-dark {
  color: #b4bab6;
  font-size: 0.88rem;
  margin: 0;
}

.pricing-price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 6px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.pricing-featured .pricing-amount {
  color: #ffffff;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-featured .pricing-period {
  color: #a9afab;
}

.pricing-setup {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.pricing-setup-dark {
  font-size: 0.86rem;
  color: #b8beb9;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #242d29;
}

.pricing-setup-dark strong {
  color: #00dc82;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
  font-size: 0.9rem;
  flex: 1 1 auto;
}

.pricing-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.pricing-list .ico {
  color: var(--brand);
  margin-top: 3px;
}

.pricing-list-dark {
  color: #e2e6e3;
}

.pricing-list-dark .ico {
  color: #00dc82;
}

.pricing-featured .btn-cta-emerald {
  background: #00dc82;
  color: #080c0a;
  border-color: #00dc82;
}

.pricing-featured .btn-cta-emerald:hover {
  background: #10c77b;
  color: #080c0a;
}

.pricing-footnote {
  text-align: center;
  margin: 18px auto 0;
}

@media (min-width: 860px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}
