/* ACME Antique Mall — one stylesheet for storefront, portals and register. */
:root {
  --ink: #1f2722;
  --ink-2: #4a544d;
  --ink-3: #7b847d;
  --paper: #fbf8f1;
  --cream: #f3ecdd;
  --card: #ffffff;
  --line: #e4dccb;
  --line-2: #d4c9b2;
  --green: #2e4a3b;
  --green-2: #3d6150;
  --green-soft: #e3ebe5;
  --brass: #a8834a;
  --brass-soft: #f4ead6;
  --red: #8e3b32;
  --red-soft: #f6e3df;
  --blue: #33506e;
  --blue-soft: #e2e9f1;
  --amber-soft: #fbefd2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 39, 34, .06), 0 6px 18px rgba(31, 39, 34, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
small, .small { font-size: 13px; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: .92em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ── Buttons & forms ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--green); background: var(--green); color: #fff; font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--green-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--green); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.brass { background: var(--brass); border-color: var(--brass); }
.btn.brass:hover { background: #94723d; }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green); font: inherit; cursor: pointer; text-decoration: underline; }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.hint { font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: 15px/1.3 var(--sans); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(46, 74, 59, .25); border-color: var(--green); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ink); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--green); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.input-prefix input { padding-left: 26px; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.err { color: var(--red); font-size: 13px; margin-top: 4px; }

/* ── Cards / panels ───────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.stat .v { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-top: 4px; }
.stat .s { font-size: 13px; color: var(--ink-3); }
.stat.accent { background: var(--green); color: #fff; border-color: var(--green); }
.stat.accent .k, .stat.accent .s { color: rgba(255, 255, 255, .75); }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 500; }
.flash.ok { background: var(--green-soft); color: var(--green); border: 1px solid #c6d6cb; }
.flash.err { background: var(--red-soft); color: var(--red); border: 1px solid #e8c4bd; }
.flash.info { background: var(--amber-soft); color: #6b5317; border: 1px solid #ecd9a6; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--cream); color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.brass { background: var(--brass-soft); color: #7b5d2c; }
.badge.amber { background: var(--amber-soft); color: #7a5c12; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tfoot td { font-weight: 700; border-top: 2px solid var(--line-2); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tbody tr:hover { background: #fdfbf6; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--cream); border: 1px solid var(--line); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--green); border-color: var(--green); }
.tabs a .n { color: var(--ink-3); font-weight: 500; margin-left: 4px; }

.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0 6px; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 6px; text-decoration: none; font-size: 14px; background: #fff; }
.pager .on { background: var(--green); color: #fff; border-color: var(--green); }
.pager .off { color: var(--ink-3); }

/* ── Storefront ───────────────────────────────────── */
.topbar { background: var(--green); color: #e9efe9; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--brass-soft); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; border: 2px solid var(--brass); }
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1; }
.logo-text small { display: block; font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.nav a:hover, .nav a.on { background: var(--cream); color: var(--ink); }
.head-search { flex: 1; max-width: 380px; margin-left: auto; }
.head-search input { background: #fff; border-radius: 999px; padding-left: 16px; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.cart-btn { position: relative; }
.cart-btn .count { position: absolute; top: -6px; right: -6px; background: var(--brass); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .head-search { display: none; }
  .site-head .wrap { gap: 10px; }
  .head-actions { margin-left: auto; }
}

.hero { background: linear-gradient(180deg, var(--cream), var(--paper)); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 540px; }
/* Two columns; the right column sits half a step lower for an even, staggered rhythm. */
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 40px; }
.hero-art a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; transition: transform .2s; }
.hero-art a:nth-child(even) { transform: translateY(40px); }
.hero-art a:hover { transform: translateY(-3px); }
.hero-art a:nth-child(even):hover { transform: translateY(37px); }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 28px; }
.hero-stats span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { display: none; } }

.section { padding: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.item-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.item-card:hover { box-shadow: 0 10px 28px rgba(31, 39, 34, .12); transform: translateY(-2px); color: var(--ink); }
.item-card .img { aspect-ratio: 1; background: var(--cream); position: relative; }
.item-card .img img { width: 100%; height: 100%; object-fit: cover; }
.item-card .img .tag { position: absolute; top: 10px; left: 10px; }
.item-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.item-card .title { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-card .meta { font-size: 12.5px; color: var(--ink-3); }
.item-card .price { font-family: var(--serif); font-weight: 600; font-size: 18px; margin-top: auto; padding-top: 6px; }
.item-card.sold .img img { filter: grayscale(.6) opacity(.75); }
.sold-stamp { position: absolute; inset: 0; display: grid; place-items: center; }
.sold-stamp span { border: 3px solid var(--red); color: var(--red); font: 800 22px/1 var(--sans); letter-spacing: .2em; padding: 8px 14px; transform: rotate(-12deg); background: rgba(255, 255, 255, .8); border-radius: 4px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.cat:hover { border-color: var(--brass); color: var(--ink); }
.cat b { font-family: var(--serif); font-size: 16px; }
.cat span { font-size: 12.5px; color: var(--ink-3); }

.dealers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.dealer { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.dealer:hover { border-color: var(--brass); color: var(--ink); }
.monogram { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-soft); color: #7b5d2c; font-family: var(--serif); font-weight: 700; font-size: 20px; border: 1px solid #e3d2ae; }
.monogram.lg { width: 84px; height: 84px; font-size: 32px; }
.dealer b { font-family: var(--serif); font-size: 17px; display: block; }
.dealer .meta { font-size: 13px; color: var(--ink-3); }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 28px 0 50px; }
.filters h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.filters a.f { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.filters a.f:hover, .filters a.f.on { background: var(--cream); color: var(--ink); }
.filters a.f.on { font-weight: 700; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } .filters { display: none; } .filters.open { display: block; } }

.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 30px 0 50px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.gallery .main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery .thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.gallery .thumbs img.on { border-color: var(--green); }
.price-lg { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; margin: 18px 0; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; }
.booth-card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--cream); margin-top: 20px; }
.crumbs { font-size: 13px; color: var(--ink-3); padding-top: 20px; }
.crumbs a { color: var(--ink-3); }

.site-foot { background: var(--ink); color: #c8cec9; padding: 44px 0 30px; margin-top: 30px; font-size: 14px; }
.site-foot a { color: #fff; }
.site-foot h4 { color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.summary .ln { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.summary .ln.total { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 18px; }
.choice { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; background: #fff; margin-bottom: 10px; font-weight: 500; color: var(--ink); font-size: 14.5px; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.choice input { accent-color: var(--green); margin-top: 3px; }
.choice.disabled { opacity: .5; cursor: not-allowed; }
.demo-note { background: var(--amber-soft); border: 1px dashed #d9bd73; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: #6b5317; }

/* ── Portal (vendor + back office) ───────────────── */
.portal { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c8cec9; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .logo { color: #fff; padding: 4px 8px 18px; }
.side .logo-text small { color: var(--brass); }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; color: #c8cec9; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.on { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.side nav a .ct { margin-left: auto; background: var(--brass); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.side nav .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #7f8a82; padding: 16px 12px 6px; font-weight: 700; }
.side .ico { width: 18px; height: 18px; flex: none; opacity: .85; }
.side .who { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.side .who b { color: #fff; display: block; }
.main { padding: 26px 32px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 30px; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .mobile-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
  .mobile-bar button { background: none; border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 6px; padding: 6px 10px; }
  .main { padding: 20px 16px 50px; }
}

.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--cream); }
.split-bar span { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; position: relative; min-width: 0; }
.chart .col .b { border-radius: 3px 3px 0 0; min-height: 0; }
.chart .col .b + .b { border-radius: 0; }
.chart .col:hover .tip { display: block; }
.chart .tip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 5px; white-space: nowrap; z-index: 5; margin-bottom: 4px; }
.chart-x { display: flex; gap: 4px; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.chart-x span { flex: 1; text-align: center; min-width: 0; overflow: hidden; }

.calc { background: var(--brass-soft); border: 1px solid #e6d5ae; border-radius: var(--radius); padding: 16px; }
.calc .ln { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.calc .ln.total { border-top: 1px solid #dcc596; margin-top: 6px; padding-top: 8px; font-weight: 700; }
.photo-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-grid label { position: relative; width: 92px; font-weight: 500; }
.photo-grid img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 18px; text-align: center; background: #fff; color: var(--ink-3); }
.cred { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.cred code { background: rgba(255, 255, 255, .12); padding: 3px 8px; border-radius: 5px; font-size: 15px; }

/* ── Register ─────────────────────────────────────── */
.pos { display: grid; grid-template-columns: 1fr 400px; height: 100vh; background: #eef0ec; }
.pos-left { display: flex; flex-direction: column; min-width: 0; }
.pos-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--ink); color: #fff; }
.pos-top a { color: #c8cec9; text-decoration: none; font-size: 14px; }
.pos-scan { padding: 18px; }
.pos-scan input { font-size: 20px; padding: 16px 18px; border: 2px solid var(--green); border-radius: 12px; }
.pos-results { padding: 0 18px 18px; overflow-y: auto; flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; align-content: start; }
.pos-hit { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.pos-hit:hover { border-color: var(--green); }
.pos-hit img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex: none; }
.pos-hit.na { opacity: .55; cursor: not-allowed; }
.pos-right { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.pos-ticket { flex: 1; overflow-y: auto; padding: 8px 18px; }
.pos-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pos-line .t { font-weight: 600; font-size: 14px; }
.pos-line .m { font-size: 12px; color: var(--ink-3); }
.pos-line .p input { width: 96px; text-align: right; padding: 6px 8px; font-size: 14px; }
.pos-line .x { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 12px; padding: 0; text-align: left; }
.pos-totals { padding: 14px 18px; border-top: 1px solid var(--line-2); background: var(--paper); }
.pos-totals .ln { display: flex; justify-content: space-between; font-size: 14.5px; padding: 2px 0; }
.pos-totals .ln.total { font-size: 24px; font-weight: 700; font-family: var(--serif); padding-top: 8px; }
.pos-pay { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.pay-methods button { padding: 14px 4px; border: 2px solid var(--line-2); border-radius: 10px; background: #fff; font: 700 14px var(--sans); white-space: nowrap; cursor: pointer; color: var(--ink); }
.pay-methods button.on { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.quick-cash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.quick-cash button { padding: 8px 0; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; cursor: pointer; font-weight: 600; }
.pos-empty { text-align: center; color: var(--ink-3); padding: 50px 10px; }
.pos-done { position: fixed; inset: 0; background: rgba(31, 39, 34, .6); display: none; place-items: center; z-index: 80; }
.pos-done.show { display: grid; }
.pos-done .box { background: #fff; border-radius: 16px; padding: 30px; width: min(420px, 92vw); text-align: center; }
.pos-done .change { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--green); }
@media (max-width: 900px) { .pos { grid-template-columns: 1fr; height: auto; } .pos-right { border-left: 0; border-top: 1px solid var(--line); } }

/* ── Print: tags, receipts, statements ───────────── */
.print-page { background: #fff; }
.print-bar { padding: 12px 20px; background: var(--ink); color: #fff; display: flex; gap: 12px; align-items: center; }
.print-bar a { color: #fff; }
.tags { display: grid; grid-template-columns: repeat(auto-fill, 2.5in); gap: .12in; padding: .3in; }
.ptag { width: 2.5in; height: 1.5in; border: 1px solid #333; border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 11px; page-break-inside: avoid; }
.ptag .t { font-weight: 700; font-size: 12px; line-height: 1.2; height: 2.4em; overflow: hidden; }
.ptag .p { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-top: auto; }
.ptag svg { height: 34px; width: 100%; }
.ptag .row { justify-content: space-between; }
.receipt { width: 320px; margin: 20px auto; font-family: var(--mono); font-size: 13px; }
.receipt .ln { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 10px 0; }
.statement { max-width: 860px; margin: 30px auto; padding: 0 20px; }
@media print {
  .print-bar, .no-print { display: none !important; }
  body { background: #fff; }
  .tags { padding: 0; }
  .card { box-shadow: none; }
}
