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

/* Shared colour contract for every Mini Market page.
   theme_name is normalized by Jinja from mini_* to theme-mini-*. */
:root {
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-light: rgba(20,184,166,.12);
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
  --shadow-hover: 0 6px 24px rgba(0,0,0,.12);
  --shadow-md: 0 6px 24px rgba(0,0,0,.12);
  --transition: .2s ease;
  --header-h: 60px;
  --header-bg: rgba(255,255,255,.95);
  --on-primary: #ffffff;
  --hero-from: #0f766e;
  --hero-to: #0284c7;
  --hero-text: #ffffff;
  --hero-sub: rgba(255,255,255,.82);
}

body.theme-mini-universal { color-scheme: light; }

body.theme-mini-flowers {
  --accent: #ec4899;
  --accent-hover: #db2777;
  --accent-light: rgba(236,72,153,.12);
  --bg: #fff5f8;
  --surface: #ffffff;
  --text: #1e1a20;
  --text-2: #7c6b78;
  --text-3: #9e8a99;
  --border: #fce7f3;
  --header-bg: rgba(255,245,248,.95);
  --hero-from: #be185d;
  --hero-to: #9d174d;
  --hero-text: #ffffff;
  --hero-sub: rgba(255,255,255,.85);
  color-scheme: light;
}

body.theme-mini-products {
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: rgba(249,115,22,.12);
  --bg: #fff8f3;
  --surface: #ffffff;
  --text: #1c1612;
  --text-2: #78716c;
  --text-3: #a8a29e;
  --border: #fed7aa;
  --header-bg: rgba(255,248,243,.95);
  --hero-from: #c2410c;
  --hero-to: #b45309;
  --hero-text: #ffffff;
  --hero-sub: rgba(255,255,255,.85);
  color-scheme: light;
}

body.theme-mini-building {
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: rgba(217,119,6,.12);
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1c1a16;
  --text-2: #78716c;
  --text-3: #a8a29e;
  --border: #e7e5e4;
  --header-bg: rgba(250,250,248,.95);
  --hero-from: #78350f;
  --hero-to: #451a03;
  --hero-text: #fef3c7;
  --hero-sub: rgba(254,243,199,.75);
  color-scheme: light;
}

body.theme-mini-flooring {
  --accent: #a16207;
  --accent-hover: #854d0e;
  --accent-light: rgba(161,98,7,.12);
  --bg: #fdf8f0;
  --surface: #ffffff;
  --text: #1c1712;
  --text-2: #7c6f5e;
  --text-3: #a8998a;
  --border: #e7e0d4;
  --header-bg: rgba(253,248,240,.95);
  --hero-from: #92400e;
  --hero-to: #6b3500;
  --hero-text: #fef9ee;
  --hero-sub: rgba(254,249,238,.78);
  color-scheme: light;
}

body.theme-mini-tech {
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59,130,246,.15);
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --border: #334155;
  --header-bg: rgba(15,23,42,.95);
  --hero-from: #1d4ed8;
  --hero-to: #1e40af;
  --hero-text: #ffffff;
  --hero-sub: rgba(255,255,255,.75);
  --on-primary: #ffffff;
  color-scheme: dark;
}
