/* ==========================================================================
   E-commerce Management System page: warm light theme
   Loaded only by systems/ecommerce-management-system.html (body.theme-store),
   after restaurant-system.css, whose layout pieces (pain cards, spotlights,
   mock screens, tools grid, roles) this page shares. Those pieces were drawn for
   a dark page, so this file re-colours them to match the Habi & Co. Seller
   Center: linen background, warm charcoal hero, terracotta accent.
   ========================================================================== */

body.theme-store { background: #faf7f3; }
.theme-store main {
  --color-bg: #faf7f3;
  --color-bg-alt: #f3ede6;
  --color-accent-text: #9a4422;

  /* page-only colours, taken from the Seller Center's palette */
  --k-surface-2: #fbf9f6;
  --k-line-strong: #e3ddd5;
  --k-amber: #b45309;
  --k-ok: #15803d;
  --k-bad: #c0362c;
  --k-info: #1d5bd8;
  --k-violet: #6d3fd1;
  --k-brand: #b4532a;

  display: block;
  background: var(--color-bg);
}
.theme-store main ::selection { background: rgba(180, 83, 42, 0.22); }

/* Hero: the Seller Center's warm charcoal, with a terracotta glow */
.theme-store .page-hero {
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(180, 83, 42, 0.38), transparent 60%),
    radial-gradient(700px 480px at -10% 115%, rgba(240, 164, 127, 0.14), transparent 60%),
    linear-gradient(165deg, #2a211c 0%, #1c1815 100%);
  padding-bottom: clamp(5rem, 9vw, 7rem);
}

/* Shared pieces that were coloured for the dark page */
.theme-store .rms-hub { color: var(--k-brand); }
.theme-store .rms-pain .rms-after { background: #f2faf5; }
.theme-store .card .icon-wrap { color: var(--k-brand); }
.theme-store .card .icon-wrap svg { width: 26px; height: 26px; }
.theme-store .rms-tool:hover { background: #fff; border-color: rgba(180, 83, 42, 0.35); }
.theme-store .rms-role--owner { border-color: rgba(180, 83, 42, 0.35); background-image: linear-gradient(160deg, rgba(180, 83, 42, 0.07), transparent 55%); }

/* Mock app windows: light, like the Seller Center itself */
.theme-store .rms-mock { background: #fff; border-color: var(--k-line-strong); box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 24px 56px rgba(28, 25, 23, 0.12), 0 0 0 6px rgba(180, 83, 42, 0.04); }
.theme-store .rms-mock::after { background: radial-gradient(closest-side, rgba(180, 83, 42, 0.07), transparent); }
.theme-store .mk-top { background: #faf8f5; }
.theme-store .mk-top i { background: #e3ddd5; }
.theme-store .mk-kpi b,
.theme-store .mk-row strong,
.theme-store .mk-slip .mk-total { color: var(--color-text); }
.theme-store .mk-meter { background: #efe9e2; }
.theme-store .mk-meter i { background: var(--k-brand); }
.theme-store .mk-btn { background: var(--k-brand); }
.theme-store .mk-btn.ghost { color: var(--color-text); background: #fff; }
.theme-store .mk-pill.violet { color: var(--k-violet); background: #f3efff; }
.theme-store .mk-pill.ok { background: #ecfdf3; }
.theme-store .mk-pill.warn { background: #fff6e5; }
.theme-store .mk-pill.bad { background: #fef1f0; }
.theme-store .mk-pill.info { background: #eef4ff; }

/* Order status tabs */
.mk-tabs { display: flex; gap: 0.35rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--k-line-strong); overflow: hidden; }
.mk-tabs span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; color: var(--color-text-muted); }
.mk-tabs b { padding: 0 0.4rem; border-radius: 999px; font-size: 0.68rem; line-height: 1.5; color: #fff; background: var(--k-brand); }
.mk-tabs .is-on { color: var(--color-text); background: #f3ede6; }

/* Quote request form under How It Works (#quote): the Get a Quote buttons land here, below the sticky header */
.eq-quote { margin-top: var(--space-5); scroll-margin-top: calc(var(--header-h) + 16px); }

/* Payment screenshot beside the check note */
.mk-proof { display: flex; align-items: center; gap: 1rem; padding: 0.85rem; border: 1px dashed #e8c48c; border-radius: 10px; background: #fffbf3; }
.mk-receipt { flex-shrink: 0; display: grid; gap: 1px; width: 150px; padding: 0.75rem 0.85rem; border-radius: 11px; background: linear-gradient(160deg, #2c5bd6, #1e3f9a); color: #dfe8ff; box-shadow: 0 8px 18px rgba(30, 63, 154, 0.28); transform: rotate(-2deg); }
.mk-receipt span { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.mk-receipt b { font-size: 1.25rem; color: #fff; }
.mk-receipt small { font-size: 0.68rem; }
.mk-mono { font-family: ui-monospace, Consolas, monospace; }
.mk-proof-copy strong { display: block; color: var(--color-text); }
.mk-proof-copy small { display: block; font-size: 0.78rem; color: var(--color-text-muted); }
.mk-row--end { justify-content: flex-end; background: transparent; border: 0; padding: 0; }

/* Stock rows: product, on hand, reserved, available */
.mk-stockhead,
.mk-stockrow { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 0.6fr)) minmax(0, 0.8fr); gap: 0.6rem; align-items: center; }
.mk-stockhead { padding: 0 0.8rem; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
.mk-stockhead span:not(:first-child),
.mk-stockrow .num { text-align: right; }
.mk-stockrow .num { font-variant-numeric: tabular-nums; color: var(--color-text); }
.mk-stockrow .mk-pill { justify-self: end; }
.theme-store .mk-dish img { background: #f3ede6; }

/* Report KPIs and payment-method bars */
.mk-kpis--3 { grid-template-columns: repeat(3, 1fr); }
.mk-bars { display: grid; gap: 0.55rem; padding: 0.75rem 0.85rem; background: var(--k-surface-2); border: 1px solid var(--color-border); border-radius: 10px; }
.mk-bars > div { display: grid; grid-template-columns: 112px 1fr 40px; align-items: center; gap: 0.65rem; font-size: 0.78rem; }
.mk-bars b { text-align: right; font-variant-numeric: tabular-nums; color: var(--color-text); }
.mk-bars > div:nth-child(2) .mk-meter i { background: #8a8f98; }
.mk-bars > div:nth-child(3) .mk-meter i { background: #16a34a; }
.mk-bars > div:nth-child(4) .mk-meter i { background: #c48b2c; }
.mk-bars > div:first-child .mk-meter i { background: #2f6fed; }

@media (max-width: 760px) {
  .mk-kpis--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .mk-kpis--3 { grid-template-columns: 1fr 1fr; }
  .mk-proof { flex-direction: column; align-items: flex-start; }
  .mk-stockhead span:nth-child(2), .mk-stockhead span:nth-child(3),
  .mk-stockrow .num { display: none; }
  .mk-stockhead, .mk-stockrow { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-bars > div { grid-template-columns: 90px 1fr 36px; }
}
