/* Collective Launchpad. One stylesheet for the public site and the admin. Mobile first.
   The Content Security Policy forbids inline styles, so every layout tweak is a class here. */
:root {
  --bg: #fbf7f1;
  --card: #ffffff;
  --ink: #1f1b16;
  --muted: #6b6257;
  --line: #e8e0d4;
  --accent: #b4481f;
  --accent-soft: #f6e6dc;
  --accent-dark: #8f3815;
  --shadow-sm: 0 1px 2px rgba(60, 35, 15, .08);
  --shadow: 0 2px 6px rgba(60, 35, 15, .08), 0 8px 24px rgba(60, 35, 15, .06);
  /* status colours, always paired with an icon and a word */
  --good-text: #006300; --good-bg: #e7f6e7;
  --warn-text: #6b4a00; --warn-bg: #fff5dc; --warn: #fab219;
  --crit-text: #8f1f1f; --crit-bg: #fbe5e5; --crit: #d03b3b;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 17px; overflow-x: hidden; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
.wrap { margin: 0 auto; padding: 0 24px; max-width: 1240px; }
.wrap.with-side { margin: 0; max-width: none; }
.wrap.narrow { max-width: 760px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 1.2em; }
.inline { display: inline; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.pre { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .65em 1.3em; border-radius: 999px;
       border: 1.5px solid var(--accent-dark); background: linear-gradient(180deg, #bd6234, var(--accent)); color: #fff;
       font: inherit; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; min-height: 44px;
       box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 2px 6px rgba(138, 60, 26, .25);
       transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease, border-color .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px rgba(138, 60, 26, .3); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(138, 60, 26, .3) inset; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #f0a271; outline-offset: 2px; }
.btn.secondary { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); box-shadow: none; }
.btn.secondary:hover { background: #f1d5c3; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn.danger { background: #fff; border-color: #e7b3b3; color: var(--crit-text); box-shadow: none; }
.btn.danger:hover { background: var(--crit-bg); border-color: var(--crit); }
.btn.small { padding: .3em .95em; min-height: 34px; font-size: .9rem; }
.btn.big { font-size: 1.1rem; padding: .85em 1.7em; }
.btn.wa { background: linear-gradient(180deg, #26a35b, #1f8f4e); border-color: #187a41; box-shadow: 0 2px 6px rgba(24, 122, 65, .25); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.linklike.quiet { text-decoration: none; color: var(--muted); }
.linklike.quiet:hover { color: var(--accent-dark); text-decoration: underline; }
/* back links: a small chip with an arrow that points the right way in right-to-left languages */
.crumbs { margin: 18px 0 10px; font-size: .9rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .35em; padding: .3em .85em .3em .65em; border-radius: 999px; background: #fff;
            border: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: color .12s, border-color .12s; }
.crumbs a::before { content: "←"; }
.crumbs a:hover { color: var(--accent-dark); border-color: var(--accent); }
label { display: block; font-weight: 600; margin: .9em 0 .3em; }
label.plain { font-weight: 400; display: inline-flex; gap: .4em; align-items: center; margin: 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: .65em .8em; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input.slug { max-width: 240px; }
textarea { min-height: 110px; resize: vertical; }
textarea.tall { min-height: 200px; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.unsure { border-color: var(--warn) !important; background: var(--warn-bg) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { font-size: .85rem; color: var(--muted); margin: .3em 0 0; }
.alert { padding: .8em 1em; border-radius: 10px; margin: 1em 0; }
.alert.ok { background: var(--good-bg); color: var(--good-text); }
.alert.err { background: var(--crit-bg); color: var(--crit-text); }
.alert.info { background: var(--accent-soft); color: var(--ink); }
.alert.warn { background: var(--warn-bg); color: var(--warn-text); }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* badges: icon + word, never colour alone */
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .12em .6em; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good-text); } .badge.good::before { content: "✓"; }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); } .badge.warn::before { content: "!"; }
.badge.crit { background: var(--crit-bg); color: var(--crit-text); } .badge.crit::before { content: "✕"; }
.badge.neutral { background: #efebe4; color: var(--muted); } .badge.neutral::before { content: "○"; }
.badge.trust { background: #fff; color: var(--ink); border: 1px solid var(--line); white-space: normal; overflow-wrap: anywhere; }

/* ---------------- public: group page ---------------- */
.home-hero { padding: 48px 0 24px; text-align: center; }
.home-hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding-bottom: 30px; }
.card-link { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: block; box-shadow: var(--shadow-sm); }
.card-link .photo { aspect-ratio: 16 / 10; background: #efe7dc; }
.card-link .photo img { width: 100%; height: 100%; object-fit: cover; }
.card-link .body { padding: 14px 16px; }
.center-row { justify-content: center; margin-top: 18px; }
.panel.join-cta { background: var(--accent-soft); border-color: transparent; }
.addr { font-size: .85rem; color: var(--accent); overflow-wrap: anywhere; }

/* ---------------- public: shop page ---------------- */
.preview-bar { background: #2a211a; color: #f4ece2; padding: 10px 0; font-size: .9rem; }
.preview-bar a { color: #f4ece2; }
.shop-hero { background: linear-gradient(160deg, #f4e3d3, #fbf7f1 70%); padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.shop-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.shop-hero .location { color: var(--muted); margin: 0 0 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
section.block { padding: 28px 0 8px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.product .photo { aspect-ratio: 4 / 3; background: #efe7dc; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #c8b8a4; }
.product .photo img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 1.1rem; margin: 0; }
.product h3 a, .card-link h3 { color: var(--ink); text-decoration: none; }
.product h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.product .price { font-size: 1.25rem; font-weight: 700; }
.product .unit { font-size: .85rem; color: var(--muted); font-weight: 400; }
.product .ask { margin-top: auto; align-self: flex-start; }
.panel, .about, .contact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
/* cards lift a little under the pointer */
.card-link, .product, .order-card, a.tile { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card-link:hover, .product:hover, .order-card:hover, a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #dccbb6; }
.contact { max-width: 640px; margin: 0 auto; }
#contact > h2 { text-align: center; }
#contact > .lead { text-align: center; color: var(--muted); margin-bottom: 18px; }
footer.site { margin-top: 40px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ---------------- admin ---------------- */
main.admin { padding-top: 22px; padding-bottom: 60px; }
.panel { margin: 18px 0; }
.panel h2 { font-size: 1.15rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 16px 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; display: block; }
.tile .label { font-size: .85rem; color: var(--muted); }
.tile .value { font-size: 1.8rem; font-weight: 600; }
.tile .sub { font-size: .85rem; color: var(--muted); }
.tile.hero { grid-column: span 2; }
.tile.hero .value { font-size: 3rem; line-height: 1.1; }
.tile.attention { border-color: var(--warn); }
@media (max-width: 520px) { .tile.hero { grid-column: span 1; } }
.scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--line); padding: 6px 8px; }
table.list td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { border-radius: 12px; padding: 10px 14px; max-width: 92%; white-space: pre-wrap; font-size: .95rem; }
.bubble.you { background: #f3eee6; align-self: flex-end; }
.bubble.assistant { background: var(--accent-soft); align-self: flex-start; }
.bubble .who { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.question { font-size: 1.15rem; font-weight: 600; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.edit-product { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .edit-product { grid-template-columns: 110px 1fr; } }
.edit-product .thumb { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; }
.edit-product .noimg { width: 110px; height: 110px; border-radius: 8px; background: #efe7dc; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .8rem; }
.edit-product.new { border-style: dashed; }
.enquiry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.enquiry.high { border-left: 6px solid var(--crit); }
.enquiry .orig { background: #f6f2ec; border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; font-size: .95rem; margin: 8px 0; }
.checks { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 10px 12px 10px 30px; margin: 10px 0; }
.mic { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: .4em 0; }
.mic .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--crit); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.previews img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.overlay { position: fixed; inset: 0; background: rgba(251, 247, 241, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 10; text-align: center; padding: 20px; }
.login-box { max-width: 420px; margin: 60px auto; }
.google-btn { width: 100%; margin-top: .5em; font-weight: 600; }
.google-btn::before { content: "G"; font-weight: 700; color: #4285f4; margin-inline-end: .2em; }
.or-line { display: flex; align-items: center; gap: .8em; color: var(--muted); font-size: .9rem; margin: 1em 0 .2em; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------------- marketplace ---------------- */
.count { display: inline-block; margin-inline-start: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
/* ---------------- left rail layout (seller dashboard & account pages) ----------------
   Collapsed icon rail under a fixed header; body.sb-open expands it. On phones the rail
   is a drawer over a dimmed scrim. */
:root { --sb-collapsed: 72px; --sb-expanded: 256px; --header-h: 68px; --ease: cubic-bezier(.4, 0, .2, 1); }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
.app-bar { position: sticky; top: 0; height: var(--header-h); z-index: 30; display: flex; align-items: center;
           gap: 16px; padding: 0 20px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-bar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em;
                  white-space: nowrap; color: var(--ink); text-decoration: none; }
.app-bar .brand .logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.app-bar .brand .logo .i { width: 16px; height: 16px; }
.app-bar .menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; }
.app-bar .menu-btn:hover { background: var(--accent-soft); }
.app-bar .nav { display: flex; gap: 4px; margin-left: 12px; }
.app-bar .nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--muted); text-decoration: none; transition: .15s; }
.app-bar .nav a:hover, .app-bar .nav a.active { background: var(--accent-soft); color: var(--accent-dark); }
/* "Sell with us" is the main call to action: keep it a solid button with white text */
.app-bar .nav a.btn, .app-bar .nav a.btn:hover { background: linear-gradient(180deg, #bd6234, var(--accent)); color: #fff; margin-left: 6px; padding: 8px 18px; }
.app-bar .nav a.btn:hover { filter: brightness(1.08); }
.app-bar .sell-quick { display: none; }
.app-bar .actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
            transition: .15s; color: var(--ink); text-decoration: none; }
.icon-btn:hover, .icon-btn.active { background: var(--accent-soft); color: var(--accent-dark); }
.icon-btn .badge-n { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
                     background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
                     border: 2px solid #fff; box-sizing: content-box; }
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 4px; border-radius: 999px; transition: .15s; cursor: pointer; list-style: none; }
.dd-btn::-webkit-details-marker { display: none; }
.dd-btn:hover, .me-menu[open] .dd-btn { background: var(--accent-soft); }
.dd-btn .i:last-child { width: 16px; height: 16px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #d9763f, #8f3815); color: #fff;
          display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.me-menu { position: relative; }
.me-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line);
                 border-radius: 14px; box-shadow: 0 18px 40px rgba(60, 30, 10, .16); padding: 6px; z-index: 40; }
.me-menu:not([open]) .menu { display: none; }
.me-menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-menu .who b { display: block; }
.me-menu .who small { color: var(--muted); }
.me-menu .menu a.item, .me-menu .menu button.item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
        border-radius: 9px; text-align: left; color: var(--ink); text-decoration: none; font-weight: 400; border: 0; background: none; font: inherit; cursor: pointer; }
.me-menu .menu a.item:hover, .me-menu .menu button.item:hover { background: var(--accent-soft); }
.me-menu .menu .item.danger { color: #b3261e; }
.me-menu .menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.me-menu .menu form { margin: 0; }

/* sidebar */
.sidebar { position: fixed; top: var(--header-h); left: 0; bottom: 0; width: var(--sb-collapsed); z-index: 20; background: #fff;
           border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px;
           transition: width .25s var(--ease); overflow: visible; }
body.sb-open .sidebar { width: var(--sb-expanded); }
.shop-card { display: flex; align-items: center; gap: 12px; padding: 6px; margin-bottom: 10px; border-radius: 12px; min-height: 48px; }
.shop-card .avatar { width: 40px; height: 40px; border-radius: 10px; font-size: 16px; }
.sidebar .label { opacity: 0; white-space: nowrap; transform: translateX(-6px); transition: opacity .15s, transform .2s; pointer-events: none; }
body.sb-open .sidebar .label { opacity: 1; transform: none; pointer-events: auto; transition-delay: .08s; }
.shop-card .label b { display: block; line-height: 1.2; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; background: var(--warn-bg);
          color: var(--warn-text); padding: 2px 9px; border-radius: 99px; margin-top: 3px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #e0a100; }
.status.live { background: var(--good-bg); color: var(--good-text); }
.status.live i { background: #2e9e44; }
.status.hidden-s { background: var(--crit-bg); color: var(--crit-text); }
.status.hidden-s i { background: var(--crit); }
.group-title { position: relative; height: 28px; display: flex; align-items: center; padding: 0 12px; font-size: 11px;
               font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-top: 8px; }
.group-title span { opacity: 0; transition: opacity .15s; }
.group-title::before { content: ""; position: absolute; left: 24px; right: 24px; border-top: 1px solid var(--line); transition: opacity .15s; }
body.sb-open .group-title span { opacity: 1; }
body.sb-open .group-title::before { opacity: 0; }
.sidebar .item { position: relative; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px; border-radius: 11px;
                 color: var(--muted); font-weight: 500; transition: background .15s, color .15s; white-space: nowrap; text-decoration: none;
                 border: 0; background: none; font: inherit; font-size: .95rem; cursor: pointer; width: 100%; text-align: left; flex-shrink: 0; }
.sidebar .item:hover { background: #f6efe7; color: var(--ink); }
.sidebar .item.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.sidebar .item.active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.sidebar .item .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
body:not(.sb-open) .sidebar .item .count { position: absolute; top: 2px; right: 2px; margin: 0; }
/* tooltip when collapsed */
body:not(.sb-open) .sidebar .item:hover::after { content: attr(data-tip); position: fixed; left: calc(var(--sb-collapsed) + 6px);
        background: #2a211c; color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; z-index: 50; pointer-events: none; font-weight: 500; }
.sidebar .scroll { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -12px; padding: 0 12px; scrollbar-width: thin; }
body:not(.sb-open) .sidebar .scroll { overflow: visible; }
.sidebar .toggle { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.sidebar .toggle .item svg { transition: transform .25s var(--ease); }
body.sb-open .sidebar .toggle .item svg { transform: rotate(180deg); }
.sidebar .scrim { display: none; }

/* content column */
.with-side { margin: 0; padding: 32px 32px 48px calc(var(--sb-collapsed) + 32px);
             transition: padding-left .25s var(--ease); }
body.sb-open .with-side { padding-left: calc(var(--sb-expanded) + 32px); }
.side-main h1 { font-size: 34px; letter-spacing: -.02em; }

/* dashboard status banner & stat tiles (reference design) */
.banner { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
          border-left: 4px solid #e0a100; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; }
.banner .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--warn-bg); color: var(--warn-text);
              display: grid; place-items: center; flex: none; }
.banner b { display: block; margin-bottom: 2px; }
.banner p { color: var(--muted); line-height: 1.5; }
.banner.published { border-left-color: #2e9e44; }
.banner.published .ic { background: var(--good-bg); color: var(--good-text); }
.banner.hidden { border-left-color: var(--crit); }
.banner.hidden .ic { background: var(--crit-bg); color: var(--crit-text); }
.banner.draft { border-left-color: var(--muted); }
.banner.draft .ic { background: #efebe4; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 16px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
        transition: .2s; display: block; color: inherit; text-decoration: none; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 30, 10, .08); }
.stat .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.stat .top .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
                 display: grid; place-items: center; flex: none; }
.stat .num { font-size: 34px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; }
.stat small { color: var(--muted); }
.stat.attention { border-color: var(--warn); }

@media (max-width: 960px) {
  .app-bar .nav { display: none; }
  .app-bar .sell-quick { display: inline-flex; }
  body.top-open .app-bar .nav a.btn { margin: 6px 0 0; justify-content: center; }
  /* on pages without a rail, the menu button drops the header's links down */
  body.top-open .app-bar .nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px;
          position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px 14px 14px; background: #fff;
          border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(60, 30, 10, .12); }
  .app-bar .menu-btn { display: grid; }
  .with-side, body.sb-open .with-side { padding-left: 20px; padding-right: 20px; }
  .sidebar { transform: translateX(-100%); width: var(--sb-expanded); transition: transform .25s var(--ease), visibility .25s; visibility: hidden; }
  body.sb-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  .sidebar .label, .sidebar .group-title span { opacity: 1; transform: none; pointer-events: auto; }
  .sidebar .group-title::before { opacity: 0; }
  .sidebar .toggle { display: none; }
  body.sb-open .sidebar .scrim { display: block; position: fixed; top: var(--header-h); left: var(--sb-expanded); right: 0; bottom: 0;
                                 background: rgba(0, 0, 0, .35); border: 0; padding: 0; border-radius: 0; }
}
@media (max-width: 480px) {
  .app-bar { gap: 8px; padding: 0 10px; }
  .app-bar .brand { font-size: 16px; gap: 6px; }
  .app-bar .actions { gap: 0; }
  .icon-btn { width: 34px; }
  .dd-btn { gap: 3px; padding-right: 2px; }
  .side-main h1 { font-size: 30px; }
  .banner { padding: 16px; gap: 10px; }
  .stats { grid-template-columns: 1fr; }
}
/* products page: filter column + grid */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-top: 24px; padding-bottom: 48px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.filters form { display: flex; flex-direction: column; gap: 20px; }
.filters .f-title { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 15px; }
.filters .f-clear { font-size: 13px; font-weight: 500; }
.filters .f-group { display: flex; flex-direction: column; gap: 6px; }
.filters .f-group > label, .filters .f-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filters .f-link { padding: 7px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.filters .f-link:hover { background: #f6efe7; }
.filters .f-link.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.filters .f-check { display: flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; }
.filters .btn { align-self: stretch; }
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; gap: 18px; }
  .filters { position: static; }
  .filters form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
}
.product-page { display: grid; gap: 24px; margin: 20px 0; }
@media (min-width: 760px) { .product-page { grid-template-columns: 1fr 1fr; } }
.product-page .photo { aspect-ratio: 1; background: #efe7dc; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #c8b8a4; }
.product-page .photo img { width: 100%; height: 100%; object-fit: cover; }
.price-big { font-size: 1.8rem; font-weight: 700; }
input.qty { width: 90px; }
.cart-shop { margin: 18px 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line img, .line .noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #efe7dc; }
.total { font-size: 1.2rem; font-weight: 700; }
.radio { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: .5em 0; }
.radio input { margin-top: .35em; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; display: block; color: inherit; text-decoration: none; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.steps span { padding: 4px 10px; border-radius: 999px; background: #efebe4; font-size: .8rem; color: var(--muted); }
.steps span.done { background: var(--good-bg); color: var(--good-text); }
.pay-box { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.upi { font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; }
.thumb-sm { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.big-number { font-size: 2.2rem; font-weight: 600; }
.reply-box { background: var(--good-bg); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover, .card-link:hover, .product:hover, .order-card:hover, a.tile:hover { transform: none; }
}

/* products page: search bar across the top of the results */
.shop-layout main { min-width: 0; }
.search-bar { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
              padding: 5px 5px 5px 18px; box-shadow: var(--shadow-sm); margin-bottom: 18px; transition: border-color .15s, box-shadow .15s; }
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-bar .i { color: var(--muted); }
.search-bar input[type=search] { flex: 1; min-width: 0; border: 0; background: none; padding: .6em 0; font-size: 1rem; box-shadow: none; outline: none; }
.search-bar input[type=search]:focus { outline: none; box-shadow: none; }
.search-bar .btn { padding: .55em 1.4em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: .85rem; text-decoration: none; }
.chip:hover { background: #efd5c6; }
.filters .f-search { display: none; }
