:root{
  --navy:#0a1a33; --navy2:#16324f; --gold:#c9a227; --gold2:#d4af37; --golddeep:#9c7c1e;
  --sand:#e8d7af; --papyrus:#eee0bf; --card:#fffdf7; --ink:#2c2317;
  --muted:#7d6c52; --line:#e7dab9; --red:#b3402e; --green:#2e7d4f;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:"Segoe UI",Tahoma,Arial,sans-serif; background:var(--papyrus);
  color:var(--ink); padding-bottom:76px; font-size:15px; line-height:1.55;
  overscroll-behavior-y:none; -webkit-tap-highlight-color:transparent;
}
.hidden{display:none !important}

/* ---------- header ---------- */
#topbar{
  position:sticky; top:0; z-index:50; background:linear-gradient(180deg,var(--navy2),var(--navy));
  color:#fff; padding:10px 14px; display:flex; align-items:center; justify-content:space-between;
  border-bottom:3px solid var(--gold); box-shadow:0 2px 10px rgba(13,43,76,.35);
}
.brand{display:flex; align-items:center; gap:10px}
.lotus{width:40px; height:40px; flex:none}
.wordmark{font-family:Georgia,"Times New Roman",serif; font-size:21px; font-weight:700; color:var(--gold2); letter-spacing:.4px; line-height:1.1}
.tagline{font-size:11px; color:#d9e4f2}
.demo-badge{font-size:10px; color:var(--navy); background:var(--gold2); border-radius:20px; padding:2px 9px; font-weight:700}

/* ---------- tab bar ---------- */
#tabbar{
  position:fixed; bottom:0; right:0; left:0; z-index:50; height:64px;
  background:var(--navy); border-top:3px solid var(--gold); display:flex;
}
.tab{
  flex:1; background:none; border:none; color:#b9c9dd; font-family:inherit; font-size:11.5px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; position:relative; cursor:pointer;
}
.tab-ic{width:23px; height:23px}
.tab.active{color:var(--gold2); font-weight:700}
.badge{
  position:absolute; top:6px; inset-inline-start:calc(50% - 2px); background:var(--red); color:#fff;
  font-size:10px; min-width:17px; height:17px; border-radius:9px; padding:0 4px; line-height:17px; text-align:center;
}
#hdrFav{
  position:relative; flex:none; width:38px; height:38px; border-radius:50%; padding:0; cursor:pointer;
  background:rgba(255,255,255,.08); border:1px solid rgba(230,200,96,.55); color:#e6c860;
  display:flex; align-items:center; justify-content:center;
}
#hdrFav svg{width:21px; height:21px}
#favBadge{top:-4px; left:-4px; inset-inline-start:auto}
#hdrBell{
  position:relative; flex:none; width:38px; height:38px; border-radius:50%; padding:0; cursor:pointer;
  background:rgba(255,255,255,.08); border:1px solid rgba(230,200,96,.55); color:#e6c860;
  display:flex; align-items:center; justify-content:center; margin-inline-end:8px;
}
#hdrBell svg{width:21px; height:21px}
#notifBadge{top:-4px; left:-4px; inset-inline-start:auto}
.wa-btn{background:#1faa55; color:#fff; border:none; font-weight:700}

/* ---------- sticky buy bar (product page only) ----------
   Pinned directly above the 64px tab bar so «أضف إلى السلة» is visible and
   tappable at every scroll position — pilot feedback: the in-flow button sat
   far below the photo at the end of a long page and testers never found it. */
#buybar{
  position:fixed; bottom:64px; right:0; left:0; z-index:60;
  background:var(--card); border-top:2.5px solid var(--gold);
  box-shadow:0 -4px 18px rgba(60,45,10,.20);
  padding:10px 12px; display:flex; gap:10px; align-items:center;
}
#buybar .qty{flex:none}
#buybar .qty button{width:36px; height:38px; font-size:19px}
#buybar .qty .n{min-width:32px; font-size:15.5px}
#buybar .btn{flex:1; padding:12px 14px; font-size:15.5px; border-radius:11px; box-shadow:0 2px 8px rgba(156,124,30,.35)}
body.has-buybar{padding-bottom:148px}
body.has-buybar #toast{bottom:152px}

/* ---------- generic ---------- */
#view{max-width:640px; margin:0 auto; padding:0 0 8px}
.screen{padding:0 12px 16px; animation:fade .18s ease}
@keyframes fade{from{opacity:0} to{opacity:1}}
h2.sec-title{
  font-size:17px; margin:20px 2px 10px; color:var(--navy); display:flex; align-items:center; gap:8px;
}
h2.sec-title::before{content:""; width:5px; height:19px; background:var(--gold); border-radius:3px}
.sec-head{display:flex; align-items:flex-end; justify-content:space-between; gap:8px}
.more-btn{
  background:none; border:1.5px solid var(--gold); color:var(--golddeep); font-family:inherit; font-weight:700;
  font-size:13px; border-radius:16px; padding:4px 12px; cursor:pointer; margin:0 2px 10px; flex:none;
}
.btn{
  display:inline-block; border:none; cursor:pointer; font-family:inherit; font-weight:700;
  background:var(--navy); color:#fff; border-radius:10px; padding:11px 18px; font-size:14.5px; text-align:center;
}
.btn.gold{background:linear-gradient(180deg,var(--gold2),var(--gold)); color:var(--navy)}
.btn.ghost{background:#fff; color:var(--navy); border:1.5px solid var(--navy)}
.btn.small{padding:7px 12px; font-size:13px; border-radius:8px}
.btn.danger{background:var(--red)}
.btn:disabled{opacity:.45; cursor:not-allowed}
.btn.block{display:block; width:100%}
input,select,textarea{
  font-family:inherit; font-size:14.5px; width:100%; padding:10px 12px; border:1.5px solid var(--line);
  border-radius:10px; background:#fff; color:var(--ink); margin:4px 0 10px;
}
textarea{resize:vertical; min-height:64px}
label{font-size:13px; font-weight:700; color:var(--navy); display:block; margin-top:6px}
.card{background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; margin:10px 0; box-shadow:0 2px 10px rgba(60,45,10,.08)}
.muted{color:var(--muted); font-size:13px}
.price{color:var(--golddeep); font-weight:800; font-size:16px}
.old-price{color:var(--muted); text-decoration:line-through; font-size:13px; margin-inline-start:6px}
.off-badge{background:var(--red); color:#fff; font-size:11px; font-weight:700; border-radius:6px; padding:1px 7px; margin-inline-start:6px}
.free-badge{background:var(--green); color:#fff; font-size:11px; font-weight:700; border-radius:6px; padding:1px 7px}
.chip{display:inline-block; background:var(--sand); border:1px solid var(--line); color:var(--navy); border-radius:16px; padding:4px 12px; font-size:12.5px; margin:2px}
.chip.on{background:var(--navy); color:var(--gold2); border-color:var(--navy); font-weight:700}
.stars{color:var(--gold); font-size:13px; letter-spacing:1px}
.hstar{position:relative; display:inline-block; color:#d8c491}
.hstar::before{content:"★"; position:absolute; inset-inline-start:0; top:0; width:50%; overflow:hidden; color:var(--gold)}
.back-btn{background:none; border:none; color:var(--navy); font-family:inherit; font-weight:700; font-size:14px; cursor:pointer; padding:10px 2px 0}
#toast{
  position:fixed; bottom:78px; right:50%; transform:translateX(50%); z-index:99; background:var(--navy); color:#fff;
  padding:10px 18px; border-radius:24px; font-size:14px; box-shadow:0 4px 16px rgba(0,0,0,.3); border:1.5px solid var(--gold);
  max-width:88vw; text-align:center;
}

/* ---------- hero ---------- */
.hero{position:relative; margin:0 -12px; overflow:hidden}
.hero img{display:block; width:100%; height:236px; object-fit:cover; object-position:38% 30%}
.hero::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,26,51,.60) 0%, rgba(10,26,51,.44) 44%, rgba(10,26,51,.18) 66%, rgba(10,26,51,0) 84%), linear-gradient(270deg, rgba(10,26,51,.84) 0%, rgba(10,26,51,.62) 34%, rgba(10,26,51,.26) 58%, rgba(10,26,51,0) 78%), linear-gradient(180deg, rgba(10,26,51,.30), rgba(10,26,51,0) 46%, rgba(10,26,51,.16))}
.hero-text{position:absolute; top:16px; right:16px; left:16px; color:#fff; text-shadow:0 2px 10px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.6); z-index:2}
.hero-text h1{margin:0; font-size:23px; line-height:1.4}
.hero-text p{margin:4px 0 10px; font-size:14.5px; font-weight:700; color:#fdf6dd; text-shadow:0 1px 3px rgba(0,0,0,.9), 0 2px 14px rgba(0,0,0,.65), 0 0 26px rgba(10,26,51,.45)}

/* ---------- artisan band ---------- */
.band{display:flex; gap:10px; overflow-x:auto; padding:4px 2px 10px; scrollbar-width:none}
.band::-webkit-scrollbar{display:none}
.artisan{
  flex:none; width:118px; text-align:center; background:var(--card); border:1px solid var(--line);
  border-radius:14px; padding:12px 6px 9px; cursor:pointer;
}
.avatar{
  width:52px; height:52px; border-radius:50%; margin:0 auto 6px; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:20px; font-weight:800; border:2.5px solid var(--gold); position:relative; overflow:hidden; flex:none;
}
.avatar img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.artisan .an{font-size:13px; font-weight:700; color:var(--navy); line-height:1.3}
.artisan .ac{font-size:11px; color:var(--muted)}

/* ---------- product rails & grid ---------- */
.rail{display:flex; gap:10px; overflow-x:auto; padding:2px 2px 10px; scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.pcard{
  flex:none; width:158px; background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  cursor:pointer; position:relative; box-shadow:0 2px 10px rgba(60,45,10,.09);
}
.grid{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.grid .pcard{width:auto}
.tile{height:118px; position:relative; overflow:hidden; background:var(--sand)}
.tile img{width:100%; height:100%; object-fit:cover; display:block}
.pcard .pinfo{padding:8px 10px 10px}
.pname{font-size:13.5px; font-weight:700; color:var(--ink); line-height:1.35; min-height:36px}
.pshop{font-size:11.5px; color:var(--muted)}
.heart{
  position:absolute; top:6px; inset-inline-start:6px; z-index:3; width:30px; height:30px; border-radius:50%;
  border:1px solid var(--line); background:rgba(255,255,255,.92); font-size:16px; line-height:1; cursor:pointer; color:#b9a888;
}
.heart.on{color:var(--red)}
.made-badge{
  position:absolute; top:6px; inset-inline-end:6px; z-index:3; background:var(--navy); color:var(--gold2);
  font-size:10px; font-weight:700; border-radius:6px; padding:2px 7px;
}

/* ---------- categories ---------- */
.cat-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px}
.cat-tile{
  border-radius:14px; overflow:hidden; cursor:pointer; color:#fff; position:relative; height:118px;
  border:1px solid rgba(0,0,0,.08); box-shadow:0 2px 10px rgba(60,45,10,.10);
}
.cat-tile img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.cat-tile .cat-label{
  position:absolute; inset-inline:0; bottom:0; padding:18px 10px 8px; font-weight:800; font-size:15.5px;
  background:linear-gradient(0deg, rgba(10,26,51,.82), rgba(10,26,51,0));
}
.cat-tile .cnt{font-size:11.5px; font-weight:400; opacity:.92}

/* ---------- product page ---------- */
.big-photo{height:262px; border-radius:16px; overflow:hidden; margin-top:10px; position:relative; box-shadow:0 3px 14px rgba(60,45,10,.14); background:var(--sand)}
.big-photo img{width:100%; height:100%; object-fit:cover; display:block}
.big-photo .made-badge{top:10px; inset-inline-end:10px}
.big-photo .heart{top:10px; inset-inline-start:10px}

/* ---------- photo gallery (product page) ---------- */
.gal-stage{height:262px; border-radius:16px; overflow:hidden; margin-top:10px; position:relative; box-shadow:0 3px 14px rgba(60,45,10,.14); background:var(--sand); cursor:zoom-in}
.gal-stage img{width:100%; height:100%; object-fit:cover; display:block}
.gal-stage .made-badge{top:10px; inset-inline-end:10px}
.gal-stage .heart{top:10px; inset-inline-start:10px}
.gal-count{position:absolute; bottom:10px; inset-inline-start:10px; z-index:3; background:rgba(10,26,51,.72); color:#fff; font-size:11.5px; font-weight:700; border-radius:12px; padding:2px 10px}
.gal-arrow{position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:36px; height:36px; border-radius:50%; border:1px solid var(--line); background:rgba(255,253,247,.92); color:var(--navy); font-size:20px; line-height:1; cursor:pointer; font-family:inherit}
.gal-prev{right:8px}
.gal-next{left:8px}
.gal-dots{display:flex; gap:6px; justify-content:center; margin:9px 0 2px}
.gdot{width:8px; height:8px; border-radius:50%; background:#d8c491}
.gdot.on{background:var(--gold); transform:scale(1.25)}
.gal-thumbs{display:flex; gap:8px; margin-top:8px; overflow-x:auto; padding-bottom:2px; scrollbar-width:none}
.gal-thumbs::-webkit-scrollbar{display:none}
.gthumb{flex:none; width:58px; height:58px; border-radius:10px; overflow:hidden; border:2px solid var(--line); padding:0; background:var(--sand); cursor:pointer}
.gthumb.on{border-color:var(--gold)}
.gthumb img{width:100%; height:100%; object-fit:cover; display:block}
.thumb{cursor:zoom-in}

/* ---------- lightbox ---------- */
#lightbox{position:fixed; inset:0; z-index:300; background:rgba(5,10,20,.96); display:flex; align-items:center; justify-content:center}
#lightbox .lb-backdrop{position:absolute; inset:0}
.lb-fig{position:relative; margin:0; overflow:hidden; line-height:0}
.lb-fig img{display:block; max-width:100vw; max-height:100vh; object-fit:contain}
.lb-wm{position:absolute; inset:-35%; transform:rotate(-24deg); display:flex; flex-wrap:wrap; align-content:center; justify-content:center; gap:38px 46px; pointer-events:none}
.lb-wm span{font-family:Georgia,"Times New Roman",serif; font-size:25px; font-weight:700; letter-spacing:.5px; color:rgba(212,175,55,.20); white-space:nowrap; line-height:1}
.lb-brand{position:absolute; bottom:14px; inset-inline-end:16px; font-family:Georgia,"Times New Roman",serif; font-size:19px; font-weight:700; color:var(--gold2); text-shadow:0 1px 6px rgba(0,0,0,.85); pointer-events:none; line-height:1.2}
.lb-close{position:absolute; top:12px; inset-inline-end:12px; z-index:3; width:40px; height:40px; border-radius:50%; border:1.5px solid var(--gold); background:rgba(10,26,51,.75); color:#fff; font-size:22px; line-height:1; cursor:pointer; font-family:inherit}
.lb-arrow{position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:42px; height:42px; border-radius:50%; border:1.5px solid var(--gold); background:rgba(10,26,51,.65); color:#fff; font-size:24px; line-height:1; cursor:pointer; font-family:inherit}
.lb-prev{right:10px}
.lb-next{left:10px}
.lb-count{position:absolute; bottom:14px; inset-inline-start:16px; z-index:3; background:rgba(10,26,51,.72); color:#fff; font-size:12.5px; font-weight:700; border-radius:12px; padding:3px 12px}

/* ---------- exit confirmation dialog ---------- */
#exitDlg{position:fixed; inset:0; z-index:400; display:flex; align-items:center; justify-content:center}
#exitDlg .dlg-backdrop{position:absolute; inset:0; background:rgba(5,10,20,.55)}
#confirmDlg{position:fixed; inset:0; z-index:400; display:flex; align-items:center; justify-content:center}
#confirmDlg .dlg-backdrop{position:absolute; inset:0; background:rgba(5,10,20,.55)}

/* ---------- registration gate (before browsing) ---------- */
body.gated{padding-bottom:0}
body.gated #topbar{display:none}
body.gated #tabbar{display:none}
.gate-tabs{display:flex; gap:8px; margin-bottom:14px}
.gtab{flex:1; padding:11px; border-radius:11px; border:1.5px solid var(--gold); background:transparent; font-family:inherit; font-size:14.5px; font-weight:800; color:var(--navy); cursor:pointer}
.gtab.on{background:var(--navy); color:var(--gold2); border-color:var(--navy)}
.demo-code-box{background:#fdf6e0; border:1.5px dashed var(--gold); border-radius:12px; padding:12px; text-align:center; margin:10px 0}
.demo-code{font-size:30px; font-weight:800; letter-spacing:8px; color:var(--navy)}
.gate-head{text-align:center; padding:22px 10px 4px}
.gate-head img{width:min(52vw,190px); border-radius:16px; box-shadow:0 6px 22px rgba(60,45,10,.25)}
.gate-head h1{font-family:Georgia,"Times New Roman",serif; font-size:22px; color:var(--golddeep); margin:10px 0 2px}
.gate-head p{color:var(--navy); font-weight:700; margin:2px 0; font-size:16px}
.field-err{color:var(--red); font-size:12.5px; font-weight:700; margin:-4px 0 8px}
.agree-row{display:flex; gap:9px; align-items:flex-start; margin:12px 0 4px; font-size:14px}
.agree-row input{width:20px; height:20px; flex:none; margin:2px 0 0; accent-color:var(--navy)}
.link-btn{background:none; border:none; padding:0; font-family:inherit; font-size:14px; font-weight:800; color:var(--golddeep); text-decoration:underline; cursor:pointer}
input[readonly]{background:#f6efdb; color:var(--muted)}
.policy-body{font-size:14px; line-height:1.8}
.policy-body h3{color:var(--navy); font-size:15.5px; margin:16px 0 4px}
.policy-body p{margin:4px 0}
.policy-body ul{margin:4px 0; padding-inline-start:20px}
.dlg-card{position:relative; width:min(84vw,320px); background:linear-gradient(180deg,var(--navy2),var(--navy)); border:1.5px solid var(--gold); border-radius:16px; padding:22px 18px 16px; text-align:center; box-shadow:0 12px 34px rgba(0,0,0,.45)}
.dlg-title{color:#fff; font-size:17px; font-weight:800; margin-bottom:16px}
.dlg-btns{display:flex; gap:10px}
.dlg-btns .btn{flex:1}

/* ---------- seller form photos ---------- */
.fp-strip{display:flex; gap:8px; flex-wrap:wrap; margin:6px 0 4px}
.fp-thumb{position:relative; width:76px; height:76px; border-radius:10px; overflow:hidden; border:2px solid var(--line); background:var(--sand)}
.fp-thumb.main{border-color:var(--gold)}
.fp-thumb img{width:100%; height:100%; object-fit:cover; display:block}
.fp-main-tag{position:absolute; bottom:0; inset-inline:0; background:rgba(10,26,51,.78); color:var(--gold2); font-size:9.5px; font-weight:700; text-align:center; padding:1px 0}
.fp-btn{position:absolute; border:none; cursor:pointer; font-family:inherit; padding:0}
.fp-del{top:3px; inset-inline-end:3px; width:20px; height:20px; border-radius:50%; background:rgba(179,64,46,.92); color:#fff; font-size:13px; line-height:1}
.fp-set{bottom:3px; inset-inline:3px; background:rgba(10,26,51,.82); color:#fff; font-size:9px; border-radius:6px; padding:2px 0; text-align:center}
table.specs{width:100%; border-collapse:collapse; font-size:13.5px}
table.specs td{padding:7px 8px; border-bottom:1px solid var(--line)}
table.specs td:first-child{color:var(--navy); font-weight:700; width:42%}
.qa-item{border-bottom:1px solid var(--line); padding:9px 0}
.qa-item .q{font-weight:700}
.qa-item .a{color:#445; margin-top:3px}
.qa-item .a b{color:var(--green)}

/* ---------- cart ---------- */
.qty{display:inline-flex; align-items:center; gap:2px; border:1.5px solid var(--line); border-radius:10px; overflow:hidden}
.qty button{
  width:32px; height:32px; border:none; background:var(--sand); font-size:17px; font-weight:800; color:var(--navy); cursor:pointer;
}
.qty .n{min-width:30px; text-align:center; font-weight:800}
.trash{
  width:32px; height:32px; border-radius:10px; border:1.5px solid #ecc9c2; background:#fdf0ec; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; margin-inline-start:6px; vertical-align:middle;
}
.trash svg{width:17px; height:17px}
.cart-row{display:flex; gap:10px; align-items:flex-start}
.cart-row .thumb{width:64px; height:64px; border-radius:10px; flex:none; overflow:hidden; background:var(--sand)}
.cart-row .thumb img{width:100%; height:100%; object-fit:cover; display:block}

/* ---------- checkout ---------- */
.radio-card{
  display:flex; gap:10px; align-items:flex-start; border:1.5px solid var(--line); border-radius:12px;
  padding:11px 12px; margin:7px 0; background:#fff; cursor:pointer;
}
.radio-card.sel{border-color:var(--navy); background:#fdf6e0; box-shadow:0 0 0 1.5px var(--gold) inset}
.radio-card input{width:auto; margin-top:4px}
.rec-badge{background:var(--gold); color:var(--navy); font-size:10.5px; font-weight:800; border-radius:6px; padding:1px 7px; margin-inline-start:6px}
.tot-row{display:flex; justify-content:space-between; padding:4px 0; font-size:14.5px}
.tot-row.grand{border-top:2px solid var(--gold); margin-top:6px; padding-top:9px; font-weight:800; font-size:16.5px; color:var(--navy)}

/* ---------- orders ---------- */
.timeline{display:flex; margin:12px 0 4px}
.tstep{flex:1; text-align:center; position:relative; font-size:10.5px; color:var(--muted); padding-top:20px}
.tstep::before{
  content:""; position:absolute; top:5px; right:50%; transform:translateX(50%); width:13px; height:13px;
  border-radius:50%; background:#ddd0ac; border:2px solid #fff; box-shadow:0 0 0 1.5px var(--line); z-index:2;
}
.tstep::after{content:""; position:absolute; top:11px; right:calc(-50% + 9px); width:calc(100% - 18px); height:2.5px; background:var(--line)}
.tstep:first-child::after{display:none}
.tstep.done{color:var(--navy); font-weight:700}
.tstep.done::before{background:var(--gold)}
.tstep.done::after{background:var(--gold)}
.tstep.refused{color:var(--red); font-weight:700}
.tstep.refused::before{background:var(--red)}
.chat-box{border:1px solid var(--line); border-radius:12px; background:#fff; padding:10px; max-height:260px; overflow-y:auto}
.msg{max-width:82%; padding:7px 11px; border-radius:13px; margin:5px 0; font-size:13.5px; width:fit-content}
.msg.me{background:var(--navy); color:#fff; margin-inline-start:auto; border-end-start-radius:4px}
.msg.them{background:var(--sand); border-end-end-radius:4px}
.msg .who{font-size:10.5px; opacity:.75; display:block}
.chat-form{display:flex; gap:7px; margin-top:8px}
.chat-form input{flex:1; margin:0}
.chat-form .btn{flex:none}

/* ---------- seller ---------- */
.subtabs{display:flex; gap:6px; margin:12px 0 4px; flex-wrap:wrap}
.subtab{border:1.5px solid var(--line); background:#fff; border-radius:18px; padding:6px 14px; font-family:inherit; font-size:13px; cursor:pointer; color:var(--navy)}
.subtab.on{background:var(--navy); color:var(--gold2); border-color:var(--navy); font-weight:700}
.stat-grid{display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:10px 0}
.stat{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px; text-align:center}
.stat .v{font-size:20px; font-weight:800; color:var(--navy)}
.stat .k{font-size:12px; color:var(--muted)}
.status-chip{font-size:11px; font-weight:700; border-radius:6px; padding:1.5px 8px}
.st-pub{background:#e2f2e7; color:var(--green)}
.st-rev{background:#fdf0d3; color:#8a6d1a}
.st-pause{background:#f3e2de; color:var(--red)}
.searchbar{display:flex; gap:7px; margin-top:12px}
.searchbar input{flex:1; margin:0}
.price-range{display:flex; gap:7px; align-items:center; margin-top:8px}
.price-range input{flex:1; margin:0}
.filters{display:flex; gap:6px; flex-wrap:wrap; margin:8px 0 2px}
.empty{text-align:center; color:var(--muted); padding:34px 10px; font-size:14px}
.kv{display:flex; justify-content:space-between; padding:5px 0; border-bottom:1px dashed var(--line); font-size:14px}
.kv b{color:var(--navy)}

/* ---------- splash ---------- */
#splash{
  position:fixed; inset:0; z-index:200; background:radial-gradient(120% 100% at 50% 0%, var(--navy2), var(--navy));
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  transition:opacity .55s ease; padding:24px;
}
#splash.hide{opacity:0; pointer-events:none}
#splash img{width:min(76vw,320px); border-radius:20px; box-shadow:0 10px 34px rgba(0,0,0,.45)}
#splash .splash-name{font-family:Georgia,"Times New Roman",serif; font-size:25px; font-weight:700; color:var(--gold2); letter-spacing:.5px}
#splash .splash-tag{font-size:13px; color:#d9e4f2}

/* ---------- brand / about card ---------- */
.brand-card{
  background:linear-gradient(180deg, var(--navy2), var(--navy)); border-radius:16px; padding:16px 14px 12px;
  text-align:center; margin:12px 0; box-shadow:0 3px 14px rgba(10,26,51,.28);
}
.brand-card img{width:min(62vw,230px); border-radius:14px}
.brand-card p{color:#e8eef7; font-size:13px; margin:10px 4px 4px; line-height:1.7}

/* ---------- product variants (Mina): buyer selectors + seller form chips ---------- */
.var-card{padding:12px 14px}
.var-group{margin:6px 0}
.var-chips{display:flex; gap:7px; flex-wrap:wrap; margin-top:7px}
.vchip{border:1.5px solid var(--line); background:#fff; border-radius:18px; padding:7px 14px; font-family:inherit; font-size:13.5px; font-weight:700; color:var(--navy); cursor:pointer}
.vchip.on{background:var(--navy); color:var(--gold2); border-color:var(--navy)}
.var-hint{color:var(--red); font-size:12.5px; font-weight:700; margin-top:6px}
.fp-addrow{display:flex; gap:7px; align-items:stretch}
.fp-addrow input{flex:1; min-width:0; margin:4px 0 6px}
.fp-addrow .btn{flex:none; margin:4px 0 6px}
.fp-chips{display:flex; gap:6px; flex-wrap:wrap; margin:2px 0 8px}
.fp-chip{display:inline-flex; align-items:center; gap:6px; background:var(--sand); border:1px solid var(--line); color:var(--navy); border-radius:14px; padding:3px 10px 3px 6px; font-size:12.5px; font-weight:700}
.fp-chip button{width:19px; height:19px; border-radius:50%; border:none; background:rgba(179,64,46,.92); color:#fff; font-size:12px; line-height:1; cursor:pointer; padding:0; flex:none}

/* ---- location pin picker ---- */
.pin-row{display:flex;align-items:center;gap:10px;margin:10px 0;flex-wrap:wrap}
.pin-dlg{position:fixed;inset:0;z-index:120;background:rgba(10,18,32,.55);display:flex;align-items:center;justify-content:center;padding:14px}
.pin-dlg.hidden{display:none}
.pin-card{background:var(--card,#fff);border-radius:14px;padding:16px;max-width:360px;width:100%;max-height:92vh;overflow:auto}
.pin-map{position:relative;height:220px;border-radius:10px;border:1px solid var(--border,#ddd);overflow:hidden;z-index:0}
.kemet-pin{background:none;border:none}
.pin-coords{margin-top:8px;font-size:13px;color:var(--navy)}

.announce-bar{background:#0a1a33;color:#f3d27a;text-align:center;padding:9px 12px;font-size:13.5px;border-radius:0 0 14px 14px;margin:-14px -14px 12px}
