/* Bramble Toys — the fictional shop under test in the Flowline demo.
   Bright, rounded, friendly. Deliberately distinct from Flowline's calm brand. */
:root {
  --paper: #fffdf7;
  --card: #ffffff;
  --ink: #2b2b3a;
  --muted: #6b6b7b;
  --line: #efe9da;
  --primary: #ff7a45;   /* sunny orange */
  --primary-ink: #ffffff;
  --accent: #ffd23f;    /* yellow */
  --sky: #1cb0f6;       /* blue */
  --leaf: #58cc02;      /* green */
  --berry: #ff5d8f;     /* pink */
  --shadow: 0 8px 28px rgba(43, 43, 58, 0.10);
  --radius: 18px;
  --maxw: 1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* --- demo banner (shop → flows) --- */
.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: linear-gradient(90deg, #efeaff, #f6f1ff);
  border-bottom: 1px solid #e3ddff;
  color: #4a4470;
  font-size: 13px; text-align: center;
}
.demo-banner b { color: #5A4FE6; }
.demo-banner a {
  color: #5A4FE6; font-weight: 800; text-decoration: none;
  white-space: nowrap;
}
.demo-banner a:hover { text-decoration: underline; }

/* --- header --- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--primary); color: var(--primary-ink);
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.4);
}
.brand .name { font-weight: 900; font-size: 19px; letter-spacing: -0.01em; }
.brand .name span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; font-weight: 700; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -8px; right: -12px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--berry); color: #fff;
  font-size: 12px; font-weight: 900;
  display: grid; place-items: center;
}

/* --- layout --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 64px; }
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  padding: 28px; margin-bottom: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff4ec, #fef7d8);
  border: 1px solid var(--line);
}
.hero h1 { margin: 0 0 8px; font-size: 34px; font-weight: 900; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--muted); max-width: 46ch; }
.hero .blobs { font-size: 64px; line-height: 1; }

h2.section { font-size: 22px; font-weight: 900; margin: 0 0 16px; }

/* --- product grid --- */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tile {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .art {
  height: 150px; display: grid; place-items: center; font-size: 64px;
}
.tile .body { padding: 14px 16px 18px; }
.tile .nm { font-weight: 800; font-size: 16px; }
.tile .pr { color: var(--primary); font-weight: 900; margin-top: 4px; }
.tile .oos { color: var(--berry); font-weight: 800; font-size: 13px; margin-top: 4px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; margin-bottom: 6px;
  background: #fff0e6; color: var(--primary);
}

/* --- product detail --- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product .art {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff4ec, #eaf7ff);
  display: grid; place-items: center; font-size: 140px; min-height: 320px;
}
.product h1 { font-size: 28px; font-weight: 900; margin: 4px 0 6px; }
.product .price { font-size: 24px; font-weight: 900; color: var(--primary); }
.field { display: block; margin: 14px 0; }
.field span { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.check { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.check input { width: 18px; height: 18px; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: none; border-radius: 999px;
  font-weight: 900; font-size: 15px; text-decoration: none;
  background: var(--primary); color: var(--primary-ink);
  box-shadow: 0 6px 16px rgba(255, 122, 69, 0.32);
  transition: transform .1s ease, filter .1s ease;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
.btn.sky { background: var(--sky); box-shadow: 0 6px 16px rgba(28,176,246,.3); }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* --- forms / auth --- */
.panel {
  max-width: 420px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.panel h1 { margin: 0 0 4px; font-size: 24px; font-weight: 900; }
.panel .sub { color: var(--muted); margin: 0 0 18px; }
.panel .alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.panel .alt a { color: var(--sky); font-weight: 800; text-decoration: none; }

/* --- basket --- */
.line-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.line-item .art { font-size: 40px; width: 56px; text-align: center; }
.line-item .nm { font-weight: 800; }
.line-item .meta { color: var(--muted); font-size: 14px; }
.line-item .pr { margin-left: auto; font-weight: 900; }
.line-item .rm {
  background: none; border: none; color: var(--berry); font-weight: 800; font-size: 14px;
}
.totals { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.totals .row { display: flex; justify-content: space-between; }
.totals .grand { font-size: 20px; font-weight: 900; }
.promo { display: flex; gap: 10px; margin-top: 18px; }
.promo input { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.banner-note {
  margin-top: 12px; padding: 10px 14px; border-radius: 12px;
  background: #eafce0; color: #2f6b16; font-weight: 700; font-size: 14px;
}
.banner-note.warn { background: #fff0e6; color: #9a4a16; }
.banner-note.err  { background: #ffe6ee; color: #9a1640; }

/* --- confirmation --- */
.confirm { text-align: center; max-width: 520px; margin: 0 auto; }
.confirm .big { font-size: 80px; }
.confirm h1 { font-size: 30px; font-weight: 900; margin: 6px 0; }

/* --- footer --- */
.site-footer {
  border-top: 1px solid var(--line); color: var(--muted);
  text-align: center; padding: 28px 20px; font-size: 13px;
}
.site-footer a { color: var(--sky); text-decoration: none; font-weight: 700; }

@media (max-width: 720px) {
  body { font-size: 15px; }
  .product { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .nav { gap: 12px; }
  .nav a.hide-sm { display: none; }
  .wrap { padding: 20px 16px 56px; }
}
