/* 🛒 Bazar — customer + office pages */
.page-bazar, .page-bazar-admin { --bz: #15803d; --bz-2: #84cc16; }
.bz-hero { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 1.1rem 1.2rem; margin: .6rem 0 1rem;
  border-radius: 18px; color: #fff; background: linear-gradient(135deg, #15803d, #65a30d); box-shadow: 0 10px 28px rgba(21,128,61,.25); }
.bz-hero h1 { margin: 0 0 .3rem; font-size: 1.7rem; } .bz-hero h1 span { font-weight: 500; font-size: 1.1rem; opacity: .9; }
.bz-hero p { margin: .2rem 0; } .bz-facts { opacity: .95; }
.bz-hero .bz-mine { background: #fff; color: var(--bz); border-color: #fff; white-space: nowrap; }
.bz-list textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line, #ccd); margin-bottom: .5rem; }
.bz-shop-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.bz-shop-head h2 { margin: 0; } .bz-shop-head input { flex: 1 1 220px; max-width: 360px; }
.bz-cats { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 0; scrollbar-width: thin; }
.bz-cats button { flex: none; font: inherit; font-size: .9rem; padding: .45rem .8rem; border-radius: 99px; border: 1px solid var(--line, #ccd); background: var(--surface, #fff); color: inherit; cursor: pointer; }
.bz-cats button.on { background: var(--bz); border-color: var(--bz); color: #fff; }
.bz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.bz-item { display: flex; flex-direction: column; gap: .15rem; padding: .6rem; border-radius: 14px; border: 1px solid var(--line, #e2e8f0); background: var(--surface, #fff); }
.bz-item.in { border-color: var(--bz); box-shadow: 0 0 0 2px rgba(21,128,61,.15); } .bz-item.out { opacity: .55; }
.bz-pic { height: 96px; border-radius: 10px; background: #f0fdf4; display: grid; place-items: center; overflow: hidden; margin-bottom: .3rem; }
.bz-pic img { width: 100%; height: 100%; object-fit: cover; } .bz-pic span { font-size: 2.6rem; }
.bz-item b { line-height: 1.25; } .bz-item small { font-size: .78rem; }
.bz-unit { font-size: .82rem; color: var(--muted, #667); } .bz-price { font-weight: 800; color: var(--bz); font-size: 1.08rem; margin: .1rem 0 .3rem; }
.bz-price s { color: var(--muted, #94a3b8); font-weight: 400; font-size: .85rem; }
.bz-item .btn { margin-top: auto; justify-content: center; }
.bz-qty { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; border-radius: 10px; background: #f0fdf4; padding: .15rem; }
.bz-qty button { width: 36px; height: 36px; border-radius: 9px; border: 0; background: var(--bz); color: #fff; font-size: 1.2rem; cursor: pointer; }
.bz-qty.sm { display: inline-flex; background: none; } .bz-qty.sm button { width: 28px; height: 28px; font-size: 1rem; }
.bz-bill { width: 100%; border-collapse: collapse; margin: .3rem 0 .6rem; font-size: .95rem; }
.bz-bill td { padding: .35rem .3rem; border-bottom: 1px solid var(--line, #eef2f7); } .bz-bill td:last-child { text-align: right; white-space: nowrap; }
.bz-bill tfoot td { border: 0; padding-top: .3rem; } .bz-bill .tot td { font-weight: 800; font-size: 1.1rem; color: var(--bz); border-top: 2px solid var(--line, #dde); }
.bz-checkout .form-grid { margin-bottom: .6rem; }
.bz-map-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .4rem 0; }
.bz-map { height: 240px; border-radius: 14px; overflow: hidden; margin-bottom: .7rem; border: 1px solid var(--line, #dde); }
.bz-send { width: 100%; justify-content: center; background: var(--bz) !important; border-color: var(--bz) !important; }
.bz-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 900; display: flex; gap: 1rem; align-items: center;
  padding: .75rem 1.1rem; border-radius: 16px; background: var(--bz); color: #fff; text-decoration: none; box-shadow: 0 12px 30px rgba(21,128,61,.35); width: max-content; max-width: calc(100% - 24px); }
.bz-bar[hidden] { display: none; }
body.has-app-tabs .bz-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.thumb { position: relative; } .thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line, #dde); }
.thumb button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #b91c1c; color: #fff; cursor: pointer; }
/* tracking */
.bz-track { max-width: 720px; margin: 1rem auto; }
.bz-tcard h1 { margin: 0 0 .2rem; }
.bz-steps { list-style: none; padding: 0; margin: .8rem 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; font-size: .8rem; text-align: center; }
.bz-steps li { display: grid; gap: .25rem; justify-items: center; color: var(--muted, #94a3b8); }
.bz-steps span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e5e7eb; font-weight: 700; color: #475569; }
.bz-steps li.done { color: var(--bz); } .bz-steps li.done span { background: var(--bz); color: #fff; }
.bz-steps li.on { color: #0f172a; font-weight: 700; } .bz-steps li.on span { background: #fde047; color: #713f12; box-shadow: 0 0 0 4px rgba(253,224,71,.35); }
.bz-dman { padding: .6rem .8rem; border-radius: 12px; background: #f0fdf4; }
.bz-listtxt { white-space: pre-wrap; padding: .5rem .7rem; border-radius: 10px; background: var(--paper, #f8fafc); }
/* office */
.bza-head { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; }
.bza-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.bza-stats div { padding: .5rem .8rem; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--line, #e2e8f0); }
.bza-stats b { font-size: 1.2rem; display: block; } .bza-stats .new { background: #fef9c3; border-color: #fde047; }
.bza-orders { display: grid; gap: .6rem; }
.bza-o { border-left: 5px solid #94a3b8; } .bza-o.st-new { border-left-color: #eab308; background: #fffbeb; } .bza-o.st-confirmed, .bza-o.st-packing { border-left-color: #0ea5e9; }
.bza-o.st-on_the_way { border-left-color: var(--bz); } .bza-o.st-delivered { opacity: .75; } .bza-o.st-cancelled { opacity: .55; }
.bza-o header { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: baseline; } .bza-o header .tag { margin-left: auto; }
.bza-o p { margin: .25rem 0; }
.bza-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.bza-bill input { min-height: 36px; } .bza-bill td { padding: .2rem; } .bza-bill input.n { width: 70px; } .bza-bill input.p { width: 90px; }
.bza-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
.bza-p { display: flex; gap: .6rem; align-items: center; } .bza-p .bz-pic { width: 60px; height: 60px; flex: none; margin: 0; } .bza-p .bz-pic span { font-size: 1.6rem; }
.bza-p > div { flex: 1; min-width: 0; } .bza-p.off { opacity: .5; }
@media (max-width: 560px) { .bz-hero { flex-direction: column; } .bz-grid { grid-template-columns: 1fr 1fr; } .bz-steps { font-size: .7rem; } }

.page-bazar-admin { --ride: #15803d; --ride-2: #84cc16; }
.bz-pin { background: none; border: 0; } .bz-pin span { display: block; font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.bz-item .btn.primary { background: var(--bz); border-color: var(--bz); }
.bz-shops { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; } .bz-shops a { color: #fff; text-decoration: none; padding: .3rem .7rem; border-radius: 99px; background: rgba(255,255,255,.18); font-size: .9rem; }
