/* Lottle — one stylesheet for the customer app, the admin console and the public page.
   Palette: warm paper, fresh market green, amber for "almost there", coral/sky/plum for tiles
   (the same family as the owner's RKT bill link, brighter). */
:root {
  --brand: #0B6E63; --brand-2: #095A51; --brand-deep: #06463F; --brand-soft: #dcefec; --brand-tint: #eef6f4;
  --amber: #EAB94D; --amber-2: #c8921a; --amber-soft: #fff3d6;
  --coral: #e8603c; --coral-soft: #fde6df; --sky: #2f6fde; --sky-soft: #e3ecfc; --plum: #6f5bb8; --plum-soft: #ebe6f8;
  --red: #b3261e; --red-soft: #fde7e5;
  --bg: #F5F8F7; --card: #ffffff; --fg: #14211E; --muted: #6b7674; --line: #e2e6e4; --line2: #eef0ee;
  --radius: 16px; --shadow: 0 10px 28px rgba(28, 37, 35, .10); --shadow-sm: 0 2px 8px rgba(28, 37, 35, .06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121716; --card: #202927; --fg: #f1f4f2; --muted: #a9b4b1; --line: #3f4b48; --line2: #2f3937; --brand: #3fae86; --brand-2: #12966b; --brand-soft: #1b3a2e; --brand-tint: #182621; --amber-soft: #3a2f10; --coral-soft: #3a2018; --sky-soft: #172238; --plum-soft: #241f36; --red-soft: #3a1a17; --shadow: 0 10px 28px rgba(0,0,0,.45); --shadow-sm: 0 2px 8px rgba(0,0,0,.3); }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--brand-2); }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--card); min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(11,110,99,.25); border-color: var(--brand); }
label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; letter-spacing: .01em; }
.hint { font-size: 12.5px; color: var(--muted); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 6px; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 22px; } h3 { font-size: 16.5px; }
.app { max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.wide .app { max-width: 1100px; }

/* header — the market-green sweep */
.hdr { background: linear-gradient(160deg, #0B6E63 0%, #0B6E63 70%, #095A51 100%); color: #fff; padding-top: env(safe-area-inset-top, 0px); border-radius: 0 0 22px 22px; box-shadow: var(--shadow); }
.hdr-in { padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
.brand { font-size: 27px; font-weight: 800; letter-spacing: -.6px; }
.brand small { font-weight: 500; font-size: 13px; opacity: .9; margin-left: 8px; letter-spacing: 0; }
.hdr .btn.secondary { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.loc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; opacity: .97; margin-top: 4px; }
.phase { background: rgba(255,255,255,.2); border-radius: 99px; padding: 3px 10px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.search { margin-top: 12px; } .search input { border: none; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(0,0,0,.04); }
#content, .main { flex: 1 1 auto; overflow-y: auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 100px max(16px, env(safe-area-inset-left, 0px)); }

/* cards & tiles */
.card { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); padding: 14px; margin: 10px 0; box-shadow: var(--shadow-sm); }
.card.soft { background: linear-gradient(160deg, var(--brand-soft), var(--brand-tint)); border-color: transparent; }
.card.warn { background: var(--amber-soft); border-color: transparent; }
.card.danger { background: var(--red-soft); border-color: transparent; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .b { font-weight: 800; } .num { font-variant-numeric: tabular-nums; }
.right { text-align: right; } .center { text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; padding: 12px 18px; min-height: 46px; cursor: pointer; text-decoration: none; box-shadow: 0 6px 16px rgba(11,110,99,.25); }
.btn.secondary { background: var(--card); color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--brand-2); border: 1px solid var(--brand); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #c9342e, #8f1f1a); box-shadow: none; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 11px; box-shadow: none; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn:focus-visible, .chips button:focus-visible { outline: 3px solid var(--amber); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 15px; font-weight: 700; font-size: 13px; cursor: pointer; }
.chips button.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* product card */
.prod { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: start; }
.prod .em { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-soft), var(--amber-soft)); display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; }
.prod .nm { font-weight: 800; display: block; font-size: 15.5px; }
.prod .pr { font-size: 16px; font-weight: 800; color: var(--brand-2); margin-top: 2px; }
.prod .pr s { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 12.5px; }
.vlist { margin-top: 8px; border-top: 1px solid var(--line2); }
.vrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.vrow:last-child { border-bottom: 0; padding-bottom: 2px; }
.bar { height: 9px; border-radius: 99px; background: var(--line2); overflow: hidden; margin-top: 8px; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-2)); transition: width .3s; border-radius: 99px; }
.bar.ok > div { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.barlbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stp { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.stp button { border: none; background: none; width: 40px; height: 40px; font-size: 20px; font-weight: 800; cursor: pointer; color: var(--brand-2); }
.stp input { width: 54px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; min-height: 40px; padding: 0; }

/* bottom nav & cart bar */
.nav { flex: 0 0 auto; border-top: 1px solid var(--line2); background: var(--card); display: flex; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); position: sticky; bottom: 0; box-shadow: 0 -6px 18px rgba(28,37,35,.06); }
.nav button { flex: 1; border: none; background: none; color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 6px 0 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 12px; }
.nav button .ic { font-size: 20px; }
.nav button.on { color: var(--brand-2); background: var(--brand-soft); }
.nav button .badge { position: absolute; margin-left: 26px; margin-top: -4px; background: var(--coral); color: #fff; border-radius: 99px; font-size: 10px; padding: 1px 6px; }
.wrap-rel { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
#cartbar { position: sticky; bottom: 0; display: none; justify-content: center; pointer-events: none; padding: 0 16px 10px; }
.cart-in { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; border-radius: 16px; padding: 10px 14px; width: 100%; max-width: 500px; box-shadow: var(--shadow); }
.cart-in b { display: block; font-size: 15px; } .cart-in span { font-size: 12px; opacity: .9; }
.cart-in button { border: none; border-radius: 11px; background: #fff; color: var(--brand-2); font-weight: 800; padding: 10px 16px; cursor: pointer; }

/* sheets, toasts */
.ovl { position: fixed; inset: 0; background: rgba(12, 20, 17, .5); display: flex; align-items: flex-end; justify-content: center; z-index: 30; backdrop-filter: blur(2px); }
.sheet { background: var(--bg); color: var(--fg); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; max-height: 92%; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: var(--shadow); }
.sheet-in { overflow-y: auto; padding: 18px 16px; }
.sheet h3 { font-size: 19px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 13.5px; border-radius: 99px; padding: 10px 18px; z-index: 50; max-width: 85%; box-shadow: var(--shadow); }
.splash { padding: 40px 10px; text-align: center; color: var(--muted); }
.splash .big { font-size: 48px; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 9px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line2); vertical-align: top; }
tbody tr:hover td { background: var(--brand-tint); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 11.5px; font-weight: 800; background: var(--line2); }
.tag.ok { background: var(--brand-soft); color: var(--brand-2); }
.tag.warn { background: var(--amber-soft); color: var(--amber-2); }
.tag.bad { background: var(--red-soft); color: var(--red); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--brand), var(--amber)); }
.kpi:nth-child(2)::before { background: linear-gradient(var(--brand-2), var(--fg)); }
.kpi:nth-child(3)::before { background: linear-gradient(var(--amber), var(--amber-2)); }
.kpi:nth-child(4)::before { background: linear-gradient(var(--fg), var(--brand)); }
.kpi:nth-child(5)::before { background: linear-gradient(var(--amber-2), var(--brand)); }
.kpi b { display: block; font-size: 22px; letter-spacing: -.02em; } .kpi span { font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--muted); }
.timeline li.done { color: var(--fg); }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--line2); font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.timeline li.done .dot { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
#qrbox { display: flex; justify-content: center; padding: 10px; background: #fff; border-radius: 12px; width: fit-content; margin: 10px auto; box-shadow: var(--shadow-sm); }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 8px 0; cursor: pointer; background: var(--card); }
.opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,110,99,.18); }
.opt input { width: auto; min-height: 0; margin-top: 3px; }

/* ===== admin console ===== */
/* icon squares: gradient tiles, SVG inside */
.ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--a, #12966b), var(--b, #0d7554)); color: #fff; flex: 0 0 auto; box-shadow: 0 3px 8px rgba(28,37,35,.12); }
.ic svg { width: 19px; height: 19px; }
.btn .ic { width: 22px; height: 22px; border-radius: 7px; background: transparent; color: inherit; box-shadow: none; } .btn .ic svg { width: 18px; height: 18px; }
.c-green { --a: #0B6E63; --b: #095A51; } .c-sky { --a: #138b7d; --b: #0B6E63; } .c-amber { --a: #EAB94D; --b: #d9a63a; } .c-coral { --a: #e6b24a; --b: #b9861a; } .c-plum { --a: #2f4f4a; --b: #14211E; } .c-teal { --a: #19a08f; --b: #0B6E63; } .c-ink { --a: #3a4a46; --b: #14211E; } .c-rose { --a: #f0c86b; --b: #c8921a; }
/* app bar */
.appbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(160deg, #0B6E63 0%, #0B6E63 70%, #095A51 100%); color: #fff; box-shadow: var(--shadow); padding-top: env(safe-area-inset-top, 0px); }
.appbar-in { display: flex; align-items: center; gap: 10px; padding: 10px 18px; max-width: 1280px; margin: 0 auto; }
.appbar .brandline { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.appbar .brandline small { font-size: 12px; font-weight: 600; opacity: .85; margin-left: 8px; letter-spacing: .04em; text-transform: uppercase; }
.appbar .biz { font-size: 13px; opacity: .95; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.appbar .avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--brand-2); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.appbar .role { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.2); border-radius: 99px; padding: 4px 10px; }
.appbar .btn.secondary { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
/* layout: side rail on wide screens, chip strip on tablets and phones */
.adm { display: grid; grid-template-columns: 232px minmax(0, 1fr); max-width: 1280px; margin: 0 auto; min-height: calc(100vh - 58px); }
.adm > .main { min-width: 0; overflow-x: hidden; }
.snav { padding: 16px 10px; }
.snav-in { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 4px; }
.snav a { display: flex; gap: 11px; align-items: center; padding: 8px 10px; border-radius: 14px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 14px; }
.snav a:hover { background: var(--card); }
.snav a.on { background: var(--card); color: var(--brand-2); box-shadow: var(--shadow-sm); }
.adm .main { padding: 18px 22px 60px; }
.topbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.topbar h2 { font-size: 26px; letter-spacing: -.02em; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-h h3 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.tile { background: var(--card); border: 1px solid var(--line2); border-radius: 18px; min-height: 96px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; color: var(--fg); text-decoration: none; font-weight: 700; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; }
.tile .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); }
.todo li:first-child { border-top: 0; }
.todo li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: 0 0 auto; }
.todo li span { flex: 1 1 auto; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 10px; gap: 6px; }
.empty .ic { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 6px; } .empty .ic svg { width: 26px; height: 26px; }
.hide-sm { display: inline; }
/* wide tables scroll inside their own box; the page itself never scrolls sideways */
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; border-radius: 12px; }
.tblwrap table { min-width: 560px; }
body.wide { overflow-x: hidden; }
@media (max-width: 1024px) {
  .adm { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
  /* tablets & phones: the sections are a row of pill buttons that WRAPS -- never a sideways scroll */
  .snav { padding: 10px 14px 0; }
  .snav-in { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .snav a { flex: 0 0 auto; white-space: nowrap; padding: 5px 14px 5px 6px; font-size: 13px; background: var(--card); border: 1px solid var(--line2); border-radius: 99px; box-shadow: var(--shadow-sm); }
  .snav a.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .snav a .ic { width: 28px; height: 28px; border-radius: 9px; } .snav a .ic svg { width: 15px; height: 15px; }
  .adm .main { padding: 12px 14px 60px; }
  .appbar .biz, .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .appbar-in { padding: 10px 12px; gap: 8px; } .appbar .role { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .snav-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .snav a { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 10.5px; border-radius: 12px; text-align: center; }
}
/* console pop-ups: compact fields, two columns, a centred dialog on wide screens */
.wide .sheet label { margin: 8px 0 3px; font-size: 12px; }
.wide .sheet input, .wide .sheet select, .wide .sheet textarea { min-height: 40px; padding: 8px 11px; border-radius: 10px; }
.wide .sheet .grid2 { gap: 4px 12px; }
.wide .sheet .opt { padding: 8px 10px; margin: 4px 0; }
.wide .sheet h3 { font-size: 18px; }
.wide .sheet p.hint { margin: 4px 0 2px; }
@media (min-width: 700px) {
  .wide .ovl { align-items: center; padding: 24px; }
  .wide .sheet { border-radius: 22px; max-height: 88%; max-width: 760px; }
  .wide .sheet .sheet-in { padding: 20px 22px; }
}
/* bill print */
.bill { background: #fff; color: #111; border-radius: 16px; padding: 16px; border: 1px solid #e3e3e3; box-shadow: var(--shadow-sm); }
.bill table { font-size: 13px; } .bill th, .bill td { padding: 6px 4px; }
@media print {
  body { background: #fff; } .hdr, .nav, .no-print, #cartbar, .side, .topbar, .toast { display: none !important; }
  #content, .main { overflow: visible; padding: 0; } .app { max-width: none; }
  .card, .bill { border: none; box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  .page-break { break-before: page; page-break-before: always; }
}
/* public page */
.landing { max-width: 860px; margin: 0 auto; padding: 24px 18px 60px; }
.hero { background: linear-gradient(160deg, #0B6E63 0%, #0B6E63 70%, #095A51 100%); color: #fff; border-radius: 24px; padding: 30px 24px; box-shadow: var(--shadow); }
.hero h1 { font-size: 36px; letter-spacing: -.6px; } .hero p { font-size: 17px; opacity: .95; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 18px 0; }
.steps .card { margin: 0; }
.steps .n { display: inline-flex; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.steps .card:nth-child(2n) .n { background: linear-gradient(135deg, var(--brand-2), var(--fg)); }
.steps .card:nth-child(3n) .n { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* Clusoa wordmark: the C-cluster mark beside the lowercase name */
.brand, .brandline { display: inline-flex; align-items: center; gap: 9px; letter-spacing: -.03em; }
.brand .mark, .brandline .mark { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; }
.hero .brand .mark { width: 36px; height: 36px; }
.brand small, .brandline small { letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; font-weight: 700; }

/* no pictures: an item's badge is its initial */
.prod .em { font-weight: 800; font-size: 22px; color: var(--brand-2); background: var(--brand-soft); font-family: inherit; }
/* customer bottom nav with line icons */
.nav button .ic { display: inline-flex; width: 24px; height: 24px; }
.nav button .ic svg { width: 22px; height: 22px; }
/* catalog: a parent and its variants read as one block */
tr.vparent td { background: var(--brand-soft); border-top: 2px solid var(--brand); }
tr.vparent td:first-child { border-left: 4px solid var(--brand); border-radius: 10px 0 0 0; }
tr.vchild td { background: var(--brand-tint); }
tr.vchild td:first-child { border-left: 4px solid var(--brand); padding-left: 18px; }
.vtag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); background: #fff; border: 1px solid var(--brand-soft); border-radius: 99px; padding: 1px 7px; margin-right: 4px; }
/* customer shop: variant rows inside the parent card */
.vlist { border-top: 2px solid var(--brand-soft); }
.vrow { padding: 10px 0 10px 10px; border-left: 3px solid var(--brand-soft); }

/* amber is the accent: Add buttons, the joining dot */
.btn.sm:not(.secondary):not(.ghost):not(.danger) { background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: var(--fg); }
.phase { cursor: pointer; }
/* folded variant cards */
.prod .chev { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); display: inline-flex; align-items: center; justify-content: center; align-self: center; transition: transform .15s; }
.prod .chev svg { width: 16px; height: 16px; }
.prod.open .chev { transform: rotate(180deg); }
.prod [data-expand] { cursor: pointer; }
.prod .vlist { margin-top: 10px; }

/* ===== customer app: more presence, logo colours only ===== */
.app { max-width: 600px; }
.hdr { border-radius: 0 0 26px 26px; background: radial-gradient(circle at 92% -20%, rgba(234,185,77,.35) 0, rgba(234,185,77,0) 42%), linear-gradient(160deg, #0B6E63 0%, #0B6E63 70%, #095A51 100%); }
.hdr-in { padding-top: 16px; padding-bottom: 16px; }
.brand { font-size: 29px; }
.hdr .phase { background: var(--amber); color: var(--fg); }
.hero-card { position: relative; overflow: hidden; background: linear-gradient(160deg, #0B6E63, #095A51); color: #fff; border-radius: 22px; padding: 22px 18px 16px; margin: 12px 0 18px; box-shadow: var(--shadow); }
.hero-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(234,185,77,.18); }
.hero-card .hero-mark { width: 54px; height: 54px; border-radius: 16px; box-shadow: 0 6px 14px rgba(0,0,0,.2); margin-bottom: 10px; }
.hero-card h2 { font-size: 26px; letter-spacing: -.02em; }
.hero-card p { margin: 6px 0 12px; opacity: .95; font-size: 15px; }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; }
.vals > div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 10px; }
.vals b { display: block; font-size: 13px; margin-bottom: 3px; }
.vals span { font-size: 11.5px; opacity: .9; line-height: 1.35; display: block; }
.btn.amber { background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: var(--fg); box-shadow: 0 6px 16px rgba(234,185,77,.35); }
.btn.light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.card.prod { padding: 14px; border-radius: 20px; transition: transform .12s, box-shadow .12s; }
.card.prod:active { transform: scale(.995); }
.prod .em { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, #0B6E63, #138b7d); color: #fff; font-size: 23px; box-shadow: 0 6px 14px rgba(11,110,99,.25); }
.prod .nm { font-size: 16px; }
.prod .pr { font-size: 20px; margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prod .pr s { font-size: 13px; margin-left: 0; }
.save { display: inline-block; background: var(--amber-soft); color: var(--amber-2); border-radius: 99px; padding: 2px 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.bar { height: 10px; background: #e6ebe9; }
.bar > div { background: linear-gradient(90deg, var(--amber), var(--amber-2)); box-shadow: inset 0 -1px 0 rgba(0,0,0,.08); }
.bar.ok > div { background: linear-gradient(90deg, #19a08f, #0B6E63); }
.barlbl { font-size: 12.5px; margin-top: 5px; }
.barlbl.ok { color: var(--brand-2); font-weight: 700; }
.chips button.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.stp { border-color: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-soft); }
.nav button.on { color: var(--brand-2); background: var(--brand-soft); }
.nav button.on .ic { color: var(--brand-2); }
#cartbar .cart-in { background: linear-gradient(135deg, #0B6E63, #095A51); }
#cartbar .cart-in button { background: var(--amber); color: var(--fg); }
.card.soft { background: linear-gradient(160deg, #dcefec, #eef6f4); }
@media (min-width: 700px) {
  .app { max-width: 760px; }
  #content .grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #content .grid-cards .card { margin: 0; }
}
@media (prefers-color-scheme: dark) { .bar { background: #2a362e; } }
.hdr .btn.sm { white-space: nowrap; flex: 0 0 auto; }
.hdr .row.between { gap: 8px; }
.brand small { line-height: 1.15; }
@media (max-width: 420px) { .brand small { display: none; } }

/* ===== shop tiles: 2 per row on phones, 3 on tablets and up ===== */
#content .grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#content .grid-cards .card { margin: 0; }
@media (min-width: 700px) { #content .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.card.prod.tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; min-width: 0; }
.tile .ptop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tile .em { width: 42px; height: 42px; border-radius: 14px; font-size: 19px; }
.tile .nm { font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.tile .pr { font-size: 18px; gap: 6px; }
.tile .pr s { font-size: 12px; }
.tile .save { font-size: 10.5px; padding: 1px 7px; }
.tile .bar { height: 8px; margin-top: 6px; }
.tile .barlbl { font-size: 11.5px; }
.tile .pact .btn.sm { min-height: 34px; padding: 5px 12px; border-radius: 10px; }
.tile .stp { border-radius: 10px; } .tile .stp button { width: 32px; height: 34px; font-size: 18px; } .tile .stp input { width: 40px; min-height: 34px; }
.tile .chev { width: 30px; height: 30px; }
.tile.open .chev { transform: rotate(180deg); }
.tile .vlist { margin-top: 6px; border-top: 2px solid var(--brand-soft); border-left: 0; padding: 0; }
.tile .vrow { display: flex; gap: 10px; align-items: center; padding: 10px 0 10px 8px; border-left: 3px solid var(--brand-soft); border-bottom: 1px solid var(--line2); }
.tile .vrow:last-child { border-bottom: 0; }
.tile .vrow .pr { margin-top: 2px; }
.tile .vrow .bar { max-width: 320px; }

/* variants open inside their own tile, compact */
.tile .vlist { display: block; margin: 6px -4px 0; border-top: 1px solid var(--line2); border-left: 0; padding: 0 4px; }
.tile .vrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-left: 0; border-bottom: 1px solid var(--line2); }
.tile .vrow .grow b { font-size: 13.5px; }
.tile .vrow .pr { font-size: 15px !important; margin-top: 0; }
.tile .vrow .bar { height: 6px; margin-top: 4px; max-width: none; }
.tile .vrow .barlbl { font-size: 11px; margin-top: 3px; }
.tile .vrow .pact .btn.sm { min-height: 32px; padding: 4px 10px; font-size: 12.5px; }
.tile .vrow .stp button { width: 28px; height: 32px; font-size: 16px; } .tile .vrow .stp input { width: 34px; min-height: 32px; font-size: 13px; }
.tile .ptop .pact { margin-left: auto; }

/* ===== shop tiles: even height, bar pinned to the bottom, flipping variant tiles ===== */
#content .grid-cards { align-items: stretch; }
.card.prod.tile { justify-content: flex-start; min-height: 196px; }
.tile .barwrap { margin-top: auto; padding-top: 6px; }
.tile .barwrap .barlbl { margin-top: 4px; }
.tile.vt { perspective: 1200px; padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.tile.vt .flip { position: relative; width: 100%; height: 100%; min-height: 196px; transition: transform .45s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.tile.vt.open .flip { transform: rotateY(180deg); }
.tile.vt .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; }
.tile.vt .face.front { cursor: pointer; }
.tile.vt .face.back { transform: rotateY(180deg); background: var(--brand-tint); border-color: var(--brand-soft); }
.tile .chev { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: 0 0 auto; }
.tile .chev svg { width: 16px; height: 16px; }
.tile.vt .ptop { justify-content: space-between; }
.tile .bhead { display: flex; align-items: center; gap: 8px; cursor: pointer; padding-bottom: 4px; border-bottom: 1px solid var(--brand-soft); }
.tile .bhead .nm { font-size: 14px; }
.tile .vscroll { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.tile .vscroll .vrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--brand-soft); border-left: 0; margin: 0; }
.tile .vscroll .vrow:last-child { border-bottom: 0; }
.tile .vrow b { font-size: 13.5px; }
.tile .vrow .vpr { font-size: 15px; font-weight: 800; color: var(--brand-2); }
.tile .vrow .vpr s { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.tile .vrow .pact .btn.sm { min-height: 30px; padding: 3px 10px; font-size: 12px; }
.tile .vrow .stp button { width: 26px; height: 30px; font-size: 15px; } .tile .vrow .stp input { width: 30px; min-height: 30px; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .tile.vt .flip { transition: none; } }

/* the cart control on every tile: - number + ; amber plus, dimmed minus at zero */
.tile .stp { border: 1px solid var(--line); box-shadow: none; background: var(--card); }
.tile .stp button:last-child { background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: var(--fg); }
.tile .stp button:first-child[disabled] { color: var(--muted); opacity: .45; cursor: default; }
.tile .stp.has { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.tile .stp.has input { color: var(--brand-2); font-weight: 800; }

/* flipped tile: compact one-line variants, no inner scroll */
.tile.vt .flip, .tile.vt .face { transition: transform .45s cubic-bezier(.2,.8,.2,1), min-height .25s; }
.tile .vlist2 { display: flex; flex-direction: column; }
.tile .vlist2 .vrow, .sheetv .vrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--brand-soft); border-left: 0; margin: 0; }
.tile .vlist2 .vrow:last-child, .sheetv .vrow:last-child { border-bottom: 0; }
.vrow b { font-size: 13.5px; }
.vrow .vpr { font-size: 14.5px; font-weight: 800; color: var(--brand-2); margin-left: 4px; }
.vrow s.small { margin-left: 4px; }
.vrow .barlbl { font-size: 11px; margin-top: 1px; }
.vrow .pact .stp button { width: 26px; height: 30px; font-size: 15px; } .vrow .pact .stp input { width: 30px; min-height: 30px; font-size: 12.5px; }
.sheetv .vrow { padding: 10px 0; } .sheetv .vrow b { font-size: 15px; } .sheetv .vrow .vpr { font-size: 16px; }

.tile.vt .face.back { overflow: hidden; }
.tile.vt .face.back .vlist2 { flex: 0 0 auto; }

/* stacked variant lines (flipped tile and the sheet) */
.tile .vlist2 .vrow, .sheetv .vrow { display: block; padding: 7px 0; }
.vrow .vname { display: block; font-size: 13.5px; line-height: 1.25; }
.vrow .vmeta { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-top: 1px; }
.vrow .vmeta .vpr { margin-left: 0; }
.vrow .vact { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.vrow .vact .barlbl { margin-top: 0; }
.sheetv .vrow .vname { font-size: 15.5px; } .sheetv .vrow .vmeta .vpr { font-size: 17px; }
