/* shopx.css — Mini-shops, inventory, cross-posting (2026-10-19). Loaded last. */

/* ------- Store: cover, info, share, highlights, groups ------- */
.shx-cover{position:relative;height:104px;border-radius:0 0 18px 18px;overflow:hidden;background:linear-gradient(120deg,#e8380d,#ff7a3d)}
.shx-cover.grad{height:68px}
.shx-cover img{width:100%;height:100%;object-fit:cover;display:block}
.shx-cover-tag{position:absolute;left:12px;bottom:10px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;backdrop-filter:blur(4px)}
.shx-infoline{display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 16px 0;font-size:13px;color:var(--muted,#666)}
.shx-sharerow{display:flex;gap:10px;padding:12px 16px 0}
.shx-sharebtn,.shx-editbtn{flex:1;border-radius:12px;padding:11px 10px;font-size:13.5px;font-weight:800;cursor:pointer;min-height:44px}
.shx-sharebtn{background:#e8380d;color:#fff;border:0}
.shx-editbtn{background:var(--input,#f4f4f7);color:var(--ink,#111);border:1px solid var(--line,#e3e3e8)}
.shx-high{padding:14px 16px 0}
.shx-high h4{margin:0 0 8px;font-size:14px}
.shx-high-it{display:flex;align-items:center;gap:12px;background:none;border:0;cursor:pointer;padding:0;color:var(--ink,#111);text-align:left}
.shx-high-c{width:52px;height:52px;border-radius:50%;padding:2.5px;background:conic-gradient(from 210deg,#e8380d,#ffb59d,#e8380d);display:flex;flex:none}
.shx-high-c img,.shx-high-c span{width:100%;height:100%;border-radius:50%;object-fit:cover;background:var(--bg,#fff);display:flex;align-items:center;justify-content:center;font-size:20px}
.shx-high-t{font-size:13px;color:var(--muted,#666)}
.shx-group-hd{grid-column:1/-1;font-size:13px;font-weight:800;letter-spacing:.02em;color:var(--ink,#111);padding:14px 2px 2px;text-transform:uppercase}

/* ------- Item page: stock + owner tools ------- */
.shx-facts{margin:14px 16px 2px;background:var(--card,#fff);border:1px solid var(--line,#e7e7ec);border-radius:14px;padding:2px 14px}
.shx-fact{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line-soft,#f1f1f4)}
.shx-fact:last-child{border-bottom:0}
.shx-fl{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted,#8a8a93);flex:none}
.shx-fv{font-size:13.5px;font-weight:600;color:var(--ink,#111);text-align:right;display:flex;align-items:center;gap:8px}
.shx-fv .shx-low{color:#e8380d}
.shx-fv .shx-out{color:#b3261e}
.shx-stepper{display:inline-flex;align-items:center;gap:2px;margin-left:6px}
.shx-stepper button{width:28px;height:28px;border-radius:50%;border:1.5px solid var(--line,#ddd);background:var(--bg,#fff);color:var(--ink,#111);font-size:16px;font-weight:800;cursor:pointer;line-height:1}
.shx-stepper b{min-width:22px;text-align:center;font-size:14px}
/* Declutter: superseded duplicate lines on the item page */
.ux-cond-chip,.ux-adid{display:none!important}
#detail-body .gal-zoom-hint{display:none!important}
#detail-body .safety li:nth-child(1),#detail-body .safety li:nth-child(4){display:none}
#detail-body .action-row{display:flex;gap:8px}
#detail-body .action-row .action-btn{flex:1 1 0;justify-content:center}
#detail-body .detail-sec-title{margin-top:22px}

/* ------- Sheets (share + edit shop) ------- */
.shx-ov{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:210;display:flex;align-items:flex-end;justify-content:center}
.shx-sheet{background:var(--bg,#fff);color:var(--ink,#111);width:100%;max-width:560px;max-height:84dvh;overflow-y:auto;border-radius:20px 20px 0 0;padding:6px 18px calc(20px + env(safe-area-inset-bottom))}
.shx-sheet-hd{display:flex;align-items:center;justify-content:space-between;padding:12px 0 8px}
.shx-sheet-hd b{font-size:16.5px}
.shx-x{background:none;border:0;font-size:25px;line-height:1;cursor:pointer;color:var(--ink,#111);padding:4px 8px}
.shx-prod{display:flex;gap:12px;align-items:center;padding:8px 0 14px}
.shx-prod img{width:52px;height:52px;border-radius:10px;object-fit:cover}
.shx-prod span{display:flex;flex-direction:column;min-width:0}
.shx-prod b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shx-prod i{font-style:normal;font-size:13px;color:#e8380d;font-weight:800}
.shx-act{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;text-align:left;background:var(--input,#f4f4f7);border:0;border-radius:13px;padding:13px 14px;font-size:15px;font-weight:700;color:var(--ink,#111);cursor:pointer;margin-bottom:9px;min-height:48px}
.shx-act span{font-size:12px;font-weight:500;color:var(--muted,#777)}
.shx-act:disabled{opacity:.6}
.shx-note{font-size:12.5px;color:var(--muted,#777);line-height:1.5;margin:6px 0 0}
.shx-fld{display:block;font-size:13px;font-weight:700;margin:12px 0 0}
.shx-fld input[type="text"],.shx-fld textarea{width:100%;margin-top:6px;border:1.5px solid var(--line,#ddd);border-radius:11px;padding:11px;font-size:14.5px;background:var(--bg,#fff);color:var(--ink,#111);font-family:inherit}
.shx-fld input[type="file"]{margin-top:8px;font-size:13px}
.shx-fhint{display:block;font-size:12px;font-weight:500;color:var(--muted,#777);margin-top:4px;line-height:1.45}
.shx-save{width:100%;background:#e8380d;color:#fff;border:0;border-radius:12px;padding:13px;font-size:15px;font-weight:800;cursor:pointer;margin-top:18px;min-height:48px}
.shx-save:disabled{opacity:.6}

/* Buying flow: no Make Offer button (chat + call only); chat takes the row */
#detail-offer{display:none!important}
#detail-body .cta-row #detail-chat{flex:1 1 auto}

/* ---- Owner product view (shopx) ---- */
#screen-detail.shx-own .chat-cta{display:none!important}
#screen-detail.shx-own #dc-actions{display:none!important}
#screen-detail.shx-own .action-row{display:none!important}
.shx-owncard{margin:12px 16px 0;background:linear-gradient(135deg,rgba(255,102,0,.10),rgba(255,102,0,.03));border:1.5px solid #f60;border-radius:14px;padding:14px 14px 12px}
.shx-oc-head{font-weight:800;font-size:16.5px}
.shx-oc-sub{font-size:12.5px;opacity:.75;margin-top:2px;line-height:1.45}
.shx-oc-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.shx-oc-stats span{background:var(--card,#fff);border:1px solid rgba(0,0,0,.08);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}
.shx-oc-row{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.shx-oc-btn{flex:1;min-width:102px;padding:10px 6px;border-radius:10px;border:1px solid rgba(0,0,0,.14);background:var(--card,#fff);font-weight:700;font-size:12.5px;cursor:pointer;font-family:inherit}
.shx-oc-btn:active{transform:scale(.97)}
.shx-oc-primary{background:#f60!important;color:#fff!important;border-color:transparent!important}
.shx-oc-btn[disabled]{opacity:.55}
.shx-oc-promo{display:block;width:100%;margin-top:10px;padding:11px;border-radius:10px;border:1.5px dashed #f60;background:transparent;color:#f60;font-weight:800;font-size:13.5px;cursor:pointer;font-family:inherit}
.shx-oc-promo:active{transform:scale(.98)}
.shx-oc-promo.on{border-style:solid;background:#f60;color:#fff}
.shx-promo-tx{font-size:13.5px;line-height:1.55;margin:4px 2px 12px}
.shx-ghost{background:transparent!important;border:1px solid rgba(0,0,0,.15)!important;color:inherit!important}

/* Chat / Call: equal halves, edge to edge (Ibrahim, Oct 20) */
.chat-cta{padding-left:10px;padding-right:10px}
.chat-cta .cta-row{display:flex;gap:8px}
.chat-cta .cta-row>*{flex:1 1 0!important;min-width:0;justify-content:center;text-align:center}

/* ---- Store page: distinct sections with boundaries (2026-10-26 fix2) ----
   The identity colours live HERE, in a linked stylesheet, scoped to the
   store2 structure — not only in extras.js's runtime-injected <style>.
   The legacy .store-hero name stays white: its hero is dark by design. */
#screen-seller .store2{padding:14px 14px 26px}
#screen-seller .store2 .store-name{color:var(--ink)}
#screen-seller .store2 .store-meta{color:var(--muted)}
#screen-seller .store-hero .store-name{color:#fff}
#screen-seller .store-hero .store-meta{color:rgba(255,255,255,.65)}
#screen-seller .shx-cover{border-radius:18px}
#screen-seller .store2-hero{background:var(--chrome);border:1px solid var(--line-soft);border-radius:18px;padding:14px;margin-top:12px;box-shadow:var(--shadow-card)}
#screen-seller .store2-id .store-pres{display:flex;justify-content:flex-start;text-align:left;margin-top:6px}
#screen-seller .store2-stats{margin-top:14px}
#screen-seller .shx-infoline{padding:10px 2px 0}
#screen-seller .shx-sharerow{padding:12px 0 0}
#screen-seller .shx-high{padding:14px 0 0}
#screen-seller .store2-acts{margin-top:12px}
#screen-seller .store2-head{margin:20px 0 12px;padding-top:18px;border-top:1px solid var(--line-soft)}
