/* TazaBazar — storefront + staff panel */
:root {
  --leaf: #1E5B38;
  --leaf-deep: #123D25;
  --leaf-soft: #E4EFE6;
  --turmeric: #EDA91C;
  --turmeric-soft: #FDF1D2;
  --chili: #C23A2B;
  --paper: #F4F6F1;
  --card: #FFFFFF;
  --ink: #17231B;
  --muted: #5B685F;
  --line: #DCE3D9;
  --focus: #2E7FD8;
  --shadow: 0 1px 2px rgba(23, 35, 27, .06), 0 8px 24px -12px rgba(23, 35, 27, .18);
  --display: "Baloo Da 2", "Hind Siliguri", system-ui, sans-serif;
  --body: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
body.dark {
  --leaf: #4FAE74;
  --leaf-deep: #0E2217;
  --leaf-soft: #1C3325;
  --turmeric: #F0B43A;
  --turmeric-soft: #3A2F14;
  --chili: #EF6B5B;
  --paper: #0F1612;
  --card: #18221C;
  --ink: #E7EEE8;
  --muted: #9CAAA0;
  --line: #2A372F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 24px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 999; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
main { flex: 1; }

/* ---------- Top ---------- */
.notice { background: var(--leaf-deep); color: #F4F8F3; text-align: center; font-size: 14px; padding: 7px 16px; }
.topbar { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--leaf); color: #fff; display: grid; place-items: center; font: 700 20px/1 var(--display); overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font: 700 23px/1 var(--display); letter-spacing: -.01em; }
.search { flex: 1; max-width: 520px; }
.search input { width: 100%; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 0 16px; font-size: 15px; }
.search input:focus { background: var(--card); border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px var(--leaf-soft); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.icon-btn svg, .cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cart-btn { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--leaf); color: #fff; font-weight: 600; }
.cart-btn b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--turmeric); color: #231A02; font-size: 13px; display: grid; place-items: center; }
.acct { position: relative; }
.acct-btn { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 6px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; font-weight: 600; font-size: 15px; }
.acct-btn.plain { padding: 0 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 50; }
.menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font-size: 15px; }
.menu button:hover { background: var(--paper); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- Hero ---------- */
.hero { background: var(--leaf); color: #F3F8F2; }
.hero-in { max-width: 1240px; margin: 0 auto; padding: 34px 20px 30px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.hero h1 { margin: 0; font: 700 clamp(30px, 4.6vw, 52px)/1.05 var(--display); letter-spacing: -.02em; max-width: 16ch; }
.hero-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.25); }
.hero-facts div { padding: 12px 12px 0 0; }
.hero-facts dt { font-size: 14px; opacity: .8; }
.hero-facts dd { margin: 0; font: 700 22px/1.2 var(--display); }
.hero-facts dd small { font: 500 14px var(--body); opacity: .85; }

/* ---------- Shelf ---------- */
.shelf { max-width: 1240px; margin: 0 auto; padding: 18px 20px 48px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: thin; }
.chip { flex-shrink: 0; border: 1px solid var(--line); background: var(--card); padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shelf-head { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.shelf-head h2 { margin: 0; font: 700 26px/1.2 var(--display); }
.shelf-count { color: var(--muted); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 1 / 1; background: var(--leaf-soft); border: 0; padding: 0; width: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font: 700 64px/1 var(--display); color: var(--leaf); opacity: .55; }
.off { position: absolute; left: 10px; top: 10px; background: var(--chili); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 6px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; border: 0; background: none; padding: 0; text-align: left; }
.card-unit { color: var(--muted); font-size: 14px; }
.card-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }

/* the bazar price tag */
.tag { position: relative; display: inline-flex; align-items: baseline; gap: 6px; background: var(--turmeric); color: #241A03; padding: 4px 12px 4px 18px; border-radius: 4px 8px 8px 4px; font: 700 18px/1.2 var(--display); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--card); }
.tag s { font: 500 13px var(--body); opacity: .7; }
.stock { font-size: 13px; color: var(--muted); }
.stock.out { color: var(--chili); font-weight: 600; }
.add { border: 0; background: var(--leaf); color: #fff; border-radius: 10px; height: 38px; padding: 0 14px; font-weight: 600; }
.add:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--leaf); border-radius: 10px; overflow: hidden; height: 38px; }
.step button { width: 34px; height: 100%; border: 0; background: var(--leaf-soft); color: var(--leaf); font-size: 18px; font-weight: 700; }
.step span { min-width: 30px; text-align: center; font-weight: 700; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font: 700 22px var(--display); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--leaf-deep); color: #C9D6CC; }
.footer-in { max-width: 1240px; margin: 0 auto; padding: 36px 20px 22px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer h3 { margin: 0 0 10px; color: #fff; font: 700 20px var(--display); }
.footer p { margin: 0 0 6px; font-size: 15px; }
.footer a { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 14px; font-size: 14px; }
.wa { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 30; }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 18, 12, .45); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--card); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 700 22px var(--display); }
.x { width: 40px; height: 40px; border: 0; background: var(--paper); border-radius: 10px; font-size: 24px; line-height: 1; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--leaf-soft); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-img .ph { font-size: 24px; }
.line-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.line-sub { font-size: 14px; color: var(--muted); }
.line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.link-btn { border: 0; background: none; color: var(--chili); font-size: 13px; padding: 0; text-decoration: underline; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.sum { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.sum.total { font: 700 20px var(--display); margin-top: 6px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; background: var(--leaf); color: #fff; text-decoration: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.warn { background: var(--chili); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn:disabled { opacity: .6; cursor: wait; }
.field { margin-bottom: 14px; }
.field label, .lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea, .inp {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 15px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--leaf); }
.err { background: #FCEBE8; color: #8A2319; border: 1px solid #F2BDB5; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
body.dark .err { background: #3A1814; color: #FFC4BB; border-color: #6B2A22; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(10, 18, 12, .5); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-box { position: relative; background: var(--card); border-radius: 18px; width: min(480px, 100%); padding: 24px; box-shadow: var(--shadow); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-box.wide { width: min(760px, 100%); }
.modal-box h2 { margin: 0 0 4px; font: 700 26px/1.2 var(--display); padding-right: 40px; }
.modal-box .sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.modal-box > .x { position: absolute; right: 14px; top: 14px; }
.tabs { display: flex; gap: 4px; background: var(--paper); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.tabs button { flex: 1; height: 40px; border: 0; background: none; border-radius: 9px; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--card); box-shadow: var(--shadow); }

.pay-list { display: grid; gap: 8px; margin-bottom: 14px; }
.pay { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.field label.pay { display: flex; margin: 0; font-weight: 500; font-size: 15px; }
.field label.check { display: flex; font-weight: 500; font-size: 14px; margin: 4px 0 0; }
.pay input { accent-color: var(--leaf); width: 18px; height: 18px; }
.pay img { height: 26px; width: auto; max-width: 60px; object-fit: contain; }
.pay:has(input:checked) { border-color: var(--leaf); background: var(--leaf-soft); }
.pay-box { background: var(--turmeric-soft); border-radius: 12px; padding: 14px; margin-bottom: 14px; font-size: 15px; }
.pay-box .acc { font: 700 24px/1.2 var(--display); letter-spacing: .02em; }
.area-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary { background: var(--paper); border-radius: 12px; padding: 14px; margin: 6px 0 16px; }

.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pd-img { border-radius: 14px; overflow: hidden; background: var(--leaf-soft); aspect-ratio: 1; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-img .ph { font-size: 110px; }
.pd h2 { padding-right: 0; }
.pd p { color: var(--muted); }

.done-code { font: 800 34px/1.1 var(--display); letter-spacing: .04em; margin: 8px 0 14px; color: var(--leaf); }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.order-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.order-items { font-size: 14px; color: var(--muted); margin: 8px 0 0; padding-left: 18px; }

.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); white-space: nowrap; }
.b-Pending { background: #FFF4D6; color: #7A5300; border-color: #F2D48A; }
.b-Confirmed { background: #E3EEFB; color: #1D4F8C; border-color: #B7CFEE; }
.b-Processing { background: #EEE6FA; color: #5A2E97; border-color: #D2BFF0; }
.b-Shipped { background: #DFF3F4; color: #135E63; border-color: #A9DADD; }
.b-Delivered { background: #E1F2E5; color: #1B5E31; border-color: #A9D5B4; }
.b-Cancelled { background: #FCE7E4; color: #8A2319; border-color: #F2BDB5; }
body.dark .badge[class*="b-"] { filter: brightness(.85) saturate(1.1); }

.toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%, -20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 500; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--chili); color: #fff; }

/* ---------- Staff panel ---------- */
.admin { max-width: 1320px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
.admin-nav { position: sticky; top: 84px; align-self: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.admin-nav button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 9px; font-size: 15px; font-weight: 500; }
.admin-nav button[aria-current="page"] { background: var(--leaf); color: #fff; }
.admin-nav button:not([aria-current="page"]):hover { background: var(--paper); }
.admin-nav .count { margin-left: auto; background: var(--turmeric); color: #241A03; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.admin-nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.admin-body h1 { margin: 0 0 4px; font: 700 30px/1.2 var(--display); }
.admin-body .sub { color: var(--muted); margin: 0 0 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 12px; font: 700 20px var(--display); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat span { color: var(--muted); font-size: 14px; }
.stat b { display: block; font: 700 28px/1.2 var(--display); }
.stat.hot { background: var(--turmeric-soft); border-color: transparent; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .inp { width: auto; flex: 1; min-width: 180px; }
.toolbar select.inp { flex: 0 0 auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--paper); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--leaf-soft); display: grid; place-items: center; font-weight: 700; color: var(--leaf); }
.acts { display: flex; gap: 6px; flex-wrap: nowrap; }
.muted { color: var(--muted); }
.status-sel { min-height: 34px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.pill-perm { display: inline-block; background: var(--leaf-soft); color: var(--leaf); border-radius: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px; margin: 2px 4px 2px 0; }
.off-row td { opacity: .55; }
.img-prev { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 18px; padding: 26px 20px 22px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .admin { grid-template-columns: 1fr; padding: 14px; }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .admin-nav button { flex-shrink: 0; width: auto; white-space: nowrap; }
  .admin-nav hr { display: none; }
}
@media (max-width: 680px) {
  .topbar-in { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .actions { gap: 6px; }
  #theme-btn { display: none; }
  .acct-btn, .cart-btn { height: 40px; }
  .cart-btn { padding: 0 10px; }
  .topbar-in > .brand { flex: 1 1 0; min-width: 0; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38vw; }
  .cart-btn span { display: none; }
  .acct-btn .nm { display: none; }
  .acct-btn { padding: 0 6px; }
  .acct-btn.plain { padding: 0 12px; }
  .shelf { padding: 12px 14px 40px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 15px; }
  .card-row { flex-direction: column; align-items: stretch; }
  .add, .step { width: 100%; }
  .step { justify-content: space-between; }
  .tag { font-size: 16px; align-self: flex-start; }
  .footer-in { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end center; }
  .modal-box { border-radius: 18px 18px 0 0; max-height: 92vh; padding: 20px 16px; }
  .hero-facts dd { font-size: 19px; }
}

/* ---------- v2 additions ---------- */
.notice.closed { background: var(--chili); }
.slider { position: relative; max-width: 1240px; margin: 16px auto 0; padding: 0 20px; }
.slides { position: relative; aspect-ratio: 16 / 6; border-radius: 18px; overflow: hidden; background: var(--leaf-soft); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide[role="link"] { cursor: pointer; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 22px; color: #fff; background: linear-gradient(transparent, rgba(8, 20, 12, .72)); }
.slide-text h2 { margin: 0; font: 700 clamp(22px, 3.4vw, 40px)/1.1 var(--display); max-width: 20ch; }
.slide-text p { margin: 6px 0 0; font-size: 16px; max-width: 48ch; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 26px; line-height: 1; box-shadow: var(--shadow); }
.sl-nav.prev { left: 32px; } .sl-nav.next { right: 32px; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); }
.dots button[aria-current] { background: #fff; width: 22px; border-radius: 6px; }
#featured { margin-bottom: 26px; }
.shelf-head .sort { margin-left: auto; }
.shelf-head select { height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 10px; font-size: 14px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button { width: 64px; height: 64px; flex-shrink: 0; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.pd-thumbs button[aria-current] { border-color: var(--leaf); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-desc p, .page-body p { color: var(--muted); margin: 0 0 10px; }
.page-body { max-width: 68ch; }
.page-body p { color: var(--ink); line-height: 1.7; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input:not([type=color]), .inline select { flex: 1; min-width: 0; }
.good { color: #1E7A43; }
body.dark .good { color: #7FD39E; }
.warn-text { color: var(--chili); }
.steps { list-style: none; display: flex; padding: 0; margin: 14px 0 6px; counter-reset: s; }
.steps li { flex: 1; position: relative; text-align: center; font-size: 12px; color: var(--muted); padding-top: 22px; }
.steps li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before, .steps li.done::after { background: var(--leaf); }
.steps li.now { font-weight: 700; }
.steps li.now::before { box-shadow: 0 0 0 4px var(--leaf-soft); }
.socials { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px !important; }
.gal { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.gal-item { width: 120px; }
.gal-item img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.gal-item .check { font-size: 13px; margin: 4px 0 0; }
.ban-prev { width: 100%; max-width: 480px; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 10px; margin-top: 8px; border: 1px solid var(--line); }
.ban-thumb { width: 150px; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 8px; }
.qstock { width: 76px; min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-align: right; font-weight: 700; }
.qstock.lowv { border-color: var(--chili); color: var(--chili); }
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.head-row .acts { margin-top: 8px; }
a.stat { color: inherit; text-decoration: none; }
a.stat:hover { border-color: var(--leaf); }
.toolbar .inp.fixed { flex: 0 0 auto; width: auto; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 .panel { margin-bottom: 18px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--muted); }
.chart .axis { stroke: var(--line); }
.bar-b { fill: var(--leaf-soft); background: var(--leaf-soft); }
.bar-d { fill: var(--leaf); background: var(--leaf); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
code.code { background: var(--turmeric-soft); padding: 3px 8px; border-radius: 6px; font-weight: 700; letter-spacing: .03em; }
.pill-perm.alt { background: var(--turmeric-soft); color: #7A5300; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 960px) { .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .slider { padding: 0 14px; margin-top: 12px; }
  .slides { aspect-ratio: 16 / 9; border-radius: 14px; }
  .slide-text { padding: 30px 16px 28px; }
  .sl-nav { display: none; }
  .shelf-head { flex-wrap: wrap; }
  .gal-item, .gal-item img { width: 96px; } .gal-item img { height: 96px; }
  .inline { flex-wrap: wrap; }
}


/* Settings: show the whole logo, never crop it */
.logo-prev { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; margin-top: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* Wide logo in the header: when a logo is uploaded it replaces the letter tile and the text name */
.brand.has-logo .brand-mark { display: flex; align-items: center; width: auto; height: 50px; background: none; border-radius: 0; overflow: visible; }
.brand.has-logo .brand-mark img { display: block; width: auto; height: 50px; max-width: none; object-fit: contain; box-sizing: border-box; }
.brand.has-logo .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.dark .brand.has-logo .brand-mark img { background: #fff; padding: 5px 10px; border-radius: 10px; }
@media (max-width: 680px) {
  .brand.has-logo .brand-mark, .brand.has-logo .brand-mark img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .topbar, .footer, .wa, .admin-nav, .notice { display: none !important; }
}
