/* ---------- Seller dashboard (owner side) ---------- */
.seller { position: fixed; inset: 0; z-index: 46; background: rgba(15, 23, 42, 0.45); display: flex; justify-content: center; align-items: center; padding: 16px; }
.sl-wrap { width: min(860px, 100%); height: min(720px, 100%); background: #f8fafc; border-radius: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.sl-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.sl-head > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sl-head b { font-size: 17px; }
.sl-head small { color: var(--muted); }
.sl-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; }
.sl-close { width: 34px; height: 34px; border-radius: 50%; background: #f1f5f9; font-size: 20px; flex: none; margin-left: auto; }
.demo-pill { flex: none; font-size: 11px; font-weight: 800; color: #92400e; background: #fef3c7; padding: 3px 9px; border-radius: 999px; }
.sl-link { color: #0f8a4a; font-weight: 700; text-decoration: underline; font-size: inherit; padding: 0; }
.sl-tabs { display: flex; gap: 6px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e5e7eb; overflow-x: auto; scrollbar-width: none; }
.sl-tabs::-webkit-scrollbar { display: none; }
.sl-tabs button { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; background: #f1f5f9; }
.sl-tabs button.on { background: #0f172a; color: #fff; }
.sl-tabs i { font-style: normal; background: #ef4444; color: #fff; border-radius: 999px; padding: 0 6px; margin-left: 4px; font-size: 11px; }
.sl-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.sl-body::-webkit-scrollbar { display: none; }
.sl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sl-stats > div { background: #fff; border-radius: 16px; padding: 12px; border: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 2px; position: relative; }
.sl-stats small { color: var(--muted); font-size: 12px; }
.sl-stats b { font-size: 19px; }
.sl-stats em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: #ef4444; border-radius: 999px; padding: 1px 7px; }
.sl-card { background: #fff; border-radius: 16px; padding: 14px; border: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 8px; }
.sl-card p { margin: 0; color: #475569; font-size: 13.5px; line-height: 1.45; }
.sl-card > small { color: var(--muted); }
.sl-chart { display: flex; gap: 10px; align-items: flex-end; height: 120px; }
.sl-chart > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.sl-chart i { width: 100%; max-width: 38px; background: linear-gradient(180deg, #34d399, #059669); border-radius: 8px 8px 3px 3px; }
.sl-chart small { color: var(--muted); font-size: 11px; }
.sl-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sl-btn { padding: 10px 16px; border-radius: 12px; background: #0f8a4a; color: #fff; font-weight: 700; font-size: 13.5px; }
.sl-btn.small { padding: 7px 12px; font-size: 12.5px; }
.sl-btn.ghost { background: #ecfdf5; color: #065f46; }
.sl-btn:hover { filter: brightness(1.05); }
.sl-msg { background: #ecfdf5; color: #065f46; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 13px; }
.sl-empty { color: var(--muted); text-align: center; }

/* Orders */
.sl-order { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.sl-order > small { color: var(--muted); }
.sl-order-top, .sl-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sl-order-foot small { color: var(--muted); }
.sl-order-foot .ok { color: #15803d; font-weight: 700; }
.sl-step { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.sl-step.s0 { background: #fee2e2; color: #b91c1c; }
.sl-step.s1 { background: #fef3c7; color: #92400e; }
.sl-step.s2 { background: #dbeafe; color: #1e40af; }
.sl-step.s3 { background: #dcfce7; color: #166534; }
.sl-lines { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-lines span { background: #f1f5f9; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }

/* Products */
.sl-products { display: flex; flex-direction: column; gap: 8px; }
.sl-prod { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 8px 10px; }
.sl-prod.off { opacity: 0.6; }
.sl-emoji { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; flex: none; }
.sl-prod-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sl-prod-name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-prod-name small { color: var(--muted); font-size: 11.5px; }
.sl-price { display: flex; align-items: center; gap: 2px; font-weight: 700; color: #475569; }
.sl-price input { width: 92px; padding: 7px 8px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; }
.sl-toggle { width: 52px; padding: 6px 0; border-radius: 999px; background: #e5e7eb; font-weight: 800; font-size: 12px; color: #6b7280; flex: none; }
.sl-toggle.on { background: #22c55e; color: #fff; }
.sl-x { width: 28px; height: 28px; border-radius: 50%; background: #fee2e2; color: #b91c1c; font-size: 16px; flex: none; }
.sl-add input, .sl-add select { padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; }
.sl-add input[name='name'] { flex: 1; min-width: 140px; }
.sl-add input[name='price'] { width: 120px; }

/* Shop picker */
.sl-pick { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.sl-pick h2 { margin: 0; }
.sl-pick p { margin: 0; color: var(--muted); }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sl-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 10px; text-align: left; }
.sl-grid button:hover { border-color: #22c55e; }
.sl-grid span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }
.sl-grid b { font-size: 13px; }
.sl-grid small { color: var(--muted); font-size: 11.5px; }

@media (max-width: 700px) {
  .seller { padding: 0; }
  .sl-wrap { border-radius: 0; height: 100%; }
  .sl-stats { grid-template-columns: repeat(2, 1fr); }
  .sl-price input { width: 74px; }
}
