/* Jabula 2 U: the public shop. Look of design rev1124b (WhatsAuction v2 bidding UI, Jabula's olive). */
:root {
  --ink: #1a1a1a; --slate: #5c6370; --line: #e3e6ea; --line-2: #c9cdd3; --paper: #fff; --surface: #f4f5f7;
  --olive: #385623; --olive-hover: #2c451b; --olive-soft: #e3ebdb;
  --hot: #c2410c; --warn: #9a4508; --warn-soft: #fbf0e1; --ok: #18764a; --muted: #6b7280; --danger: #a3321b;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  --foot-h: 76px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 15px/1.4 var(--sans); padding-bottom: env(safe-area-inset-bottom, 0px); }
body.hasfoot { padding-bottom: calc(var(--foot-h) + env(safe-area-inset-bottom, 0px)); }
a { color: var(--olive); }
button, input, select { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.grow { flex: 1; min-width: 0; }
main { max-width: 720px; margin: 0 auto; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; }
.brand h1 { margin: 0; font: 700 34px/1 var(--script); color: var(--olive); }
.tagline, .bar .sub { display: block; font-size: 12px; color: var(--slate); margin-top: 3px; }
.back { min-height: 44px; display: flex; align-items: center; gap: 6px; color: var(--slate); text-decoration: none; font-weight: 500; }
.cartbtn { background: var(--olive); color: #fff; border-radius: 6px; padding: 0 12px; min-height: 44px; display: flex; align-items: center;
  gap: 4px; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }

/* category pills */
.cats { position: sticky; top: calc(65px + env(safe-area-inset-top, 0px)); z-index: 15; display: flex; align-items: center;
  background: var(--paper); border-bottom: 1px solid var(--line); }
.pills { flex: 1; min-width: 0; display: flex; gap: 8px; padding: 10px 8px 10px 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: 16px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0 16px; min-height: 44px; font-size: 14px; font-weight: 600; white-space: nowrap; background: var(--paper); color: var(--ink); text-decoration: none; }
.pill[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.more { flex: 0 0 44px; width: 44px; align-self: stretch; border: 0; border-left: 1px solid var(--line); background: var(--paper); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }

/* product grid */
.listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px 0; }
.listhead h2 { margin: 0; font-size: 17px; font-weight: 600; }
.listhead span { font-size: 13px; color: var(--slate); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px 12px; padding: 12px 16px 16px; }
.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; color: var(--ink); }
.ph { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #e9e3d5; display: flex; align-items: center; justify-content: center; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.out img { opacity: .55; }
.tag { position: absolute; top: 8px; left: 8px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px 7px;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.badge { position: absolute; left: 8px; bottom: 8px; background: var(--paper); color: var(--slate); border-radius: 4px; padding: 3px 7px; font-size: 12px; font-weight: 600; }
.nm { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nophoto { font-size: 13px; color: var(--slate); padding: 12px; text-align: center; }
.empty { padding: 24px 16px; color: var(--slate); text-align: center; }

/* sheets */
.sheet { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 16px; margin-top: 10px; }
.sheet h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--slate); }
.sheet p { margin: 0; font-size: 14px; }
.folds { padding: 0 16px; }
.folds details + details { border-top: 1px solid var(--line); }
.folds summary { padding: 14px 0; font-weight: 600; cursor: pointer; min-height: 44px; }
.folds details p { padding-bottom: 14px; color: var(--slate); }
.sharecard { display: flex; align-items: center; gap: 12px; }
.sharecard b { display: block; font-weight: 600; }
.sharecard span { display: block; font-size: 13px; color: var(--slate); }
.foot { max-width: 720px; margin: 0 auto; padding: 16px; font-size: 13px; color: var(--slate); }
.foot p { margin: 0 0 8px; }
.prose h1 { font-size: 20px; margin: 4px 0 12px; }
.pre { white-space: pre-line; font-size: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 0 16px; min-height: 48px;
  font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; }
.btn.brand { background: var(--olive); color: #fff; }
.btn.brand:hover { background: var(--olive-hover); }
.btn.ghost { background: var(--paper); border: 1.5px solid var(--ink); color: var(--ink); }
.btn.quiet { background: transparent; color: var(--slate); font-weight: 500; font-size: 14px; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { min-height: 44px; padding: 0 12px; font-size: 13px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); }
.btn.small.dark { border-color: var(--ink); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.round { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.footbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.footbar .btn { max-width: 688px; margin: 0 auto; display: flex; }

/* product page */
.photo { position: relative; background: #e9e3d5; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; max-height: 70vh; align-items: center; }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.gal .nophoto { flex: 1; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(26, 26, 26, .3); }
.dots span.on { background: var(--ink); }
.product .sheet { margin-top: 0; padding: 0; }
.lotid { display: flex; gap: 12px; align-items: center; padding: 14px 16px 10px; }
.lotid h1 { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.25; }
.lotid .sub { display: block; font-size: 13px; color: var(--slate); }
.tag.big { position: static; height: 72px; min-width: 72px; padding: 0 6px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tag.big .n { font-size: 28px; line-height: 1; letter-spacing: -.02em; }
.tag.big .l { font-size: 11px; color: var(--slate); margin-top: 3px; font-weight: 400; }
.bigmoney { padding: 6px 16px 14px; }
.bigmoney .lab { display: block; font-size: 13px; color: var(--slate); }
.bigmoney .val { display: block; font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bigmoney small { font-size: 15px; font-weight: 500; color: var(--slate); margin-left: 8px; letter-spacing: 0; }
.state { margin: 6px 0 0 !important; font-size: 15px !important; font-weight: 600; }
.state.low, .state.out { color: var(--hot); }
.state.warn { color: var(--warn); }
.state.ok { color: var(--ok); }
.state.muted { color: var(--slate); }
.info { margin: 0 16px 16px; }
.info summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--ink);
  border-radius: 8px; font-weight: 600; font-size: 16px; cursor: pointer; }
.info summary::-webkit-details-marker { display: none; }
.info[open] .chev { transform: rotate(180deg); }
.infobody { padding: 12px 2px 0; }
.desc { white-space: pre-line; margin: 0 0 10px !important; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-top: 1px solid var(--line); }
.kv span:last-child { color: var(--slate); text-align: right; font-variant-numeric: tabular-nums; }
.kv.strong span { font-weight: 600; color: var(--ink); }

/* cart and order form */
.pagetitle { font-size: 20px; margin: 14px 16px 0; }
.line { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line .top { display: flex; gap: 12px; align-items: center; }
.line .thumb { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 6px; overflow: hidden; background: #e9e3d5; position: relative; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .thumb b { position: absolute; left: 3px; top: 3px; background: var(--paper); border: 1px solid var(--ink); border-radius: 3px; font-size: 11px; padding: 0 4px; }
.line .name { display: block; font-weight: 500; line-height: 1.3; }
.line .meta { display: block; font-size: 13px; color: var(--slate); }
.line .warnline { display: block; font-size: 13px; font-weight: 600; color: var(--hot); }
.line .bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 44px; height: 44px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 20px; font-weight: 600; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.line .amount { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.line .rm { border: 0; background: none; color: var(--slate); font-size: 13px; min-height: 44px; padding: 0 4px; cursor: pointer; text-decoration: underline; }
.totals .kv:first-child { border-top: 0; }
.totals .big { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.totals .big b { font-size: 17px; }
.totals .big span { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.totals .vat { font-size: 13px; color: var(--slate); text-align: right; }
.formsec { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }
.formsec h2 { margin: 0; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--slate); margin-bottom: 5px; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #8a919c; border-radius: 8px; background: var(--paper); font-size: 16px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); background: #fdf1ee; }
.hint { display: block; font-size: 13px; color: var(--slate); margin-top: 5px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.formend { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 14px; }
.check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--olive); }
.note { background: var(--olive-soft); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 0; }
.note.small { background: none; padding: 4px 0 0; font-size: 13px; color: var(--slate); }
.formerror { color: var(--danger); font-weight: 600; font-size: 14px; margin: 0; }

/* order page */
.clock { display: flex; align-items: baseline; gap: 10px; padding: 0 16px 14px; flex-wrap: wrap; }
.clock .lab { font-size: 13px; color: var(--slate); }
.clock .t { font-size: 28px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pill-note { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 3px 7px; background: var(--warn-soft); color: var(--warn); }
.orderpage .sheet:first-child { margin-top: 0; padding: 0; }
.steps { list-style: none; margin: 0; padding: 4px 16px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--slate); }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done .dot { background: var(--olive); border-color: var(--olive); }
.steps li.now { color: var(--olive); font-weight: 600; }
.steps li.now .dot { border-color: var(--olive); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 12px var(--olive); }
.bankbox .row, .orderpage .row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--line); }
.bankbox h2 + .row { border-top: 0; }
.row .lab { display: block; font-size: 13px; color: var(--slate); }
.row b { display: block; font-weight: 600; word-break: break-word; }
.row b.ref { font-size: 17px; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
.confirm { position: fixed; inset: 0; z-index: 50; background: rgba(26, 26, 26, .45); display: flex; align-items: flex-end; justify-content: center; }
.confirm .box { background: var(--paper); width: 100%; max-width: 560px; border-radius: 12px 12px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.confirm p { margin: 0 0 14px; font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--foot-h) + 16px); transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); }
.langlink { white-space: nowrap; }

@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { border: 1px solid var(--line); border-radius: 10px; margin: 10px 16px 0; }
  .product .sheet, .orderpage .sheet:first-child { margin: 0 16px; }
  .gal { max-height: 520px; }
}
