/* Easybuy Ukraine investor demo — H5 mobile storefront styles */
:root{
  --navy:#0f2f4d; --teal:#1c6b86; --yellow:#f2c94c; --price:#b7791f;
  --muted:#64748b; --border:#e2e8f0; --bg:#f3f6f8; --card:#fff;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:#dde4ea; color:#102a43; font-size:14px; line-height:1.45;
}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
button{font-family:inherit;cursor:pointer;}

/* phone shell — centers nicely on desktop, full-bleed on phone */
#app{max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);
  position:relative;box-shadow:0 0 40px rgba(15,47,77,.12);}
.view{padding-bottom:78px;min-height:100vh;}

/* top app bar */
.eb-appbar{position:sticky;top:0;z-index:30;background:var(--navy);color:#fff;padding:10px 14px 12px;}
.eb-appbar__row{display:flex;align-items:center;gap:10px;}
.eb-logo{display:flex;align-items:center;gap:8px;text-decoration:none;}
.eb-logo__mark{height:36px;width:auto;display:block;flex:none;}
.eb-logo__txt{color:#F4C84A;font-weight:800;font-size:15px;line-height:1.05;letter-spacing:.2px;text-shadow:0 2px 8px rgba(0,0,0,.22);white-space:nowrap;}
.eb-appbar__spacer{flex:1;}
.eb-icnbtn{width:34px;height:34px;border-radius:9px;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:16px;display:flex;align-items:center;justify-content:center;position:relative;}
.eb-lang{display:inline-flex;gap:2px;margin-right:4px;}
.eb-lang button{border:0;background:rgba(255,255,255,.14);color:#fff;font-size:11px;font-weight:800;padding:5px 7px;border-radius:7px;line-height:1;}
.eb-lang button.on{background:var(--yellow);color:var(--navy);}
.eb-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--yellow);color:var(--navy);font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;}
.eb-search{margin-top:10px;display:flex;height:40px;background:#fff;border-radius:10px;overflow:hidden;}
.eb-search input{flex:1;border:0;outline:0;padding:0 14px;font-size:14px;color:#102a43;min-width:0;}
.eb-search button{border:0;background:var(--teal);color:#fff;font-weight:800;padding:0 16px;}

.eb-back{display:inline-flex;align-items:center;gap:6px;color:#fff;font-weight:700;background:none;border:0;font-size:14px;padding:0;}

/* generic */
.eb-sec{padding:14px;}
.eb-sec__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.eb-sec__head h2{margin:0;font-size:17px;color:var(--navy);}
.eb-sec__head a{color:var(--teal);font-weight:800;font-size:13px;}
.eb-card{background:var(--card);border:1px solid var(--border);border-radius:12px;}
.eb-pad{padding:14px;}
.muted{color:var(--muted);}
.eb-note{color:var(--muted);font-size:12px;line-height:1.5;margin:8px 0 0;}

/* hero / notice */
.eb-notice{background:#08263f;color:#cfe3ee;font-size:11.5px;padding:7px 14px;text-align:center;}
.eb-hero{margin:14px;padding:18px;border-radius:14px;color:#fff;
  background:linear-gradient(135deg,#0f2f4d,#1c6b86);}
.eb-hero h1{margin:6px 0 6px;font-size:21px;line-height:1.25;}
.eb-hero p{margin:0;color:#d7e8f0;font-size:12.5px;}
.eb-hero__cta{display:flex;gap:8px;margin-top:14px;}
.eb-eyebrow{color:var(--yellow);font-weight:900;font-size:11px;text-transform:uppercase;letter-spacing:.04em;}

/* buttons */
.eb-btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 16px;border:0;border-radius:10px;background:var(--teal);color:#fff;font-weight:800;font-size:14px;}
.eb-btn--accent{background:var(--yellow);color:var(--navy);}
.eb-btn--ghost{background:rgba(255,255,255,.14);color:#fff;}
.eb-btn--line{background:#fff;color:var(--navy);border:1px solid var(--border);}
.eb-btn--block{width:100%;}
.eb-btn--sm{height:36px;padding:0 12px;font-size:13px;border-radius:9px;}

/* chips / category rail */
.eb-chips{display:flex;gap:8px;overflow-x:auto;padding:0 14px 4px;scrollbar-width:none;}
.eb-chips::-webkit-scrollbar{display:none;}
.eb-chip{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;width:64px;}
.eb-chip__ic{width:54px;height:54px;display:block;border-radius:14px;}
.eb-herobanner{display:block;margin:12px 14px 0;border-radius:14px;overflow:hidden;border:1px solid var(--border);box-shadow:0 10px 24px rgba(15,47,77,.08);}
.eb-herobanner img{width:100%;display:block;}
.eb-chip span{font-size:11px;color:var(--navy);font-weight:700;text-align:center;line-height:1.2;}

/* trust strip */
.eb-trust{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:0 14px;align-items:stretch;grid-auto-rows:1fr;}
.eb-trust > div{background:#f7fbfd;border:1px solid #e7f0f5;border-radius:13px;padding:11px;display:flex;align-items:center;gap:10px;min-width:0;}
.eb-trust__tx{min-width:0;flex:1;}
.eb-trust__ic-wrap{flex:0 0 40px;width:40px;height:40px;border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px #e3edf3,0 2px 5px rgba(15,47,77,.05);}
.eb-trust__ic{width:26px;height:26px;display:block;object-fit:contain;margin:0;}
.eb-trust__tx strong{display:block;font-size:12px;font-weight:800;color:var(--navy);line-height:1.2;overflow-wrap:break-word;}
.eb-trust__tx span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;color:var(--muted);font-size:10.5px;line-height:1.3;}

/* product grid */
.eb-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 14px;}
.eb-pcard{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;position:relative;}
.eb-pcard__disc{position:absolute;top:8px;left:8px;background:#fff6df;color:#a2642a;font-size:10.5px;font-weight:900;padding:2px 7px;border-radius:999px;z-index:1;}
.eb-pcard__img{width:100%;height:140px;object-fit:contain;background:#f4f8fb;}
.eb-pcard__b{padding:9px 10px 11px;}
.eb-pcard__tag{display:inline-block;background:#e6f4f8;color:var(--navy);font-size:10px;font-weight:900;padding:2px 7px;border-radius:999px;margin-bottom:5px;}
.eb-pcard__name{font-size:13px;color:#102a43;font-weight:600;line-height:1.3;height:34px;overflow:hidden;}
.eb-pcard__price{margin-top:6px;display:flex;align-items:baseline;gap:6px;}
.eb-pcard__price em{color:var(--price);font-style:normal;font-weight:900;font-size:16px;}
.eb-pcard__price del{color:#94a3b8;font-size:11px;}
.eb-pcard__meta{margin-top:4px;display:flex;justify-content:space-between;color:var(--muted);font-size:10.5px;font-weight:700;}

/* list (single column variant on category) */
.eb-catwrap{display:grid;grid-template-columns:84px 1fr;gap:0;min-height:calc(100vh - 110px);}
.eb-catnav{background:#eef3f7;border-right:1px solid var(--border);}
.eb-catnav a{display:block;padding:14px 8px;text-align:center;font-size:12px;font-weight:700;color:#475569;border-left:3px solid transparent;}
.eb-catnav a.on{background:#fff;color:var(--teal);border-left-color:var(--teal);}
.eb-catbody{padding:12px;}

/* product detail */
.eb-detail__img{width:100%;height:300px;object-fit:contain;background:#fff;}
.eb-detail__b{background:#fff;padding:16px 14px;margin-bottom:10px;}
.eb-detail__price{display:flex;align-items:baseline;gap:10px;}
.eb-detail__price em{color:var(--price);font-style:normal;font-weight:900;font-size:26px;}
.eb-detail__price del{color:#94a3b8;}
.eb-detail__name{margin:8px 0 0;font-size:17px;color:var(--navy);line-height:1.35;}
.eb-kv{display:flex;justify-content:space-between;padding:11px 0;border-top:1px solid #eef3f7;font-size:13px;}
.eb-kv:first-child{border-top:0;}
.eb-kv span:first-child{color:var(--muted);}
.eb-kv b{color:var(--navy);}

/* line items (cart/order) */
.eb-line{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #eef3f7;}
.eb-line:first-child{border-top:0;}
.eb-line img{width:64px;height:64px;object-fit:contain;background:#f4f8fb;border:1px solid var(--border);border-radius:10px;}
.eb-line__name{font-size:13px;color:var(--navy);font-weight:700;line-height:1.3;}
.eb-line__sub{margin-top:3px;color:var(--muted);font-size:11px;}
.eb-line__price{color:var(--price);font-weight:900;white-space:nowrap;font-size:13px;}
.eb-qty{display:inline-flex;align-items:center;border:1px solid #cfd9e2;border-radius:8px;overflow:hidden;margin-top:6px;}
.eb-qty button{width:30px;height:30px;border:0;background:#f3f6f8;color:var(--navy);font-weight:900;}
.eb-qty span{min-width:34px;text-align:center;font-weight:800;font-size:13px;}
.eb-rm{color:var(--teal);font-size:12px;font-weight:700;background:none;border:0;padding:4px 0 0;}

/* summary */
.eb-sum__row{display:flex;justify-content:space-between;margin:8px 0;color:#475569;font-size:13px;}
.eb-sum__total{display:flex;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid var(--border);font-weight:900;color:var(--navy);font-size:18px;}

/* tags */
.eb-tag{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;background:#e6f4f8;color:var(--navy);font-size:11px;font-weight:900;}
.eb-tag--green{background:#e3f5ea;color:#2f7d52;}
.eb-tag--amber{background:#fff6df;color:#a2642a;}
.eb-tag--blue{background:#e7eefb;color:#3552a4;}

/* order card */
.eb-order{background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin-bottom:12px;}
.eb-order__top{display:flex;justify-content:space-between;align-items:center;padding-bottom:10px;border-bottom:1px solid #eef3f7;}
.eb-order__no{font-weight:900;color:var(--navy);font-size:13px;}
.eb-order__thumbs{display:flex;gap:6px;margin-top:10px;}
.eb-order__thumbs img{width:46px;height:46px;object-fit:contain;background:#f4f8fb;border:1px solid var(--border);border-radius:8px;}
.eb-order__foot{display:flex;justify-content:space-between;align-items:center;margin-top:10px;}

/* timeline */
.eb-tl{list-style:none;margin:0;padding:4px 0 0;}
.eb-tl li{position:relative;padding:0 0 18px 24px;color:#475569;font-size:13px;}
.eb-tl li::before{content:"";position:absolute;left:4px;top:3px;width:9px;height:9px;border-radius:50%;background:#cbd5e1;}
.eb-tl li::after{content:"";position:absolute;left:8px;top:12px;bottom:0;width:2px;background:#e2e8f0;}
.eb-tl li:last-child{padding-bottom:0;}
.eb-tl li:last-child::after{display:none;}
.eb-tl li.done{color:var(--navy);font-weight:700;}
.eb-tl li.done::before{background:var(--teal);}
.eb-tl li.cur::before{background:var(--yellow);box-shadow:0 0 0 4px rgba(242,201,76,.25);}
.eb-tl time{display:block;color:var(--muted);font-size:11px;font-weight:600;}

/* member */
.eb-mhero{margin:14px;padding:18px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#0f2f4d,#1c6b86);display:flex;justify-content:space-between;align-items:center;}
.eb-mhero h1{margin:4px 0 2px;font-size:19px;}
.eb-mhero p{margin:0;color:#d7e8f0;font-size:12px;}
.eb-mhero__pts{text-align:right;}
.eb-mhero__pts strong{display:block;font-size:24px;}
.eb-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0 14px;}
.eb-stats div{background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 4px;text-align:center;}
.eb-stats strong{display:block;color:var(--navy);font-size:18px;}
.eb-stats span{display:block;color:var(--muted);font-size:10.5px;font-weight:700;}
.eb-menu{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.eb-menu a{background:#f7fafc;border:1px solid var(--border);border-radius:10px;padding:13px;color:var(--navy);font-weight:800;font-size:13px;}

/* coupons */
.eb-coupon{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:10px;}
.eb-coupon__v{flex:0 0 78px;text-align:center;padding:10px 4px;border-radius:10px;background:#f3f6f8;}
.eb-coupon__v strong{display:block;color:var(--price);font-size:18px;}
.eb-coupon__v span{display:block;color:var(--muted);font-size:10.5px;font-weight:700;}
.eb-coupon__b{flex:1;min-width:0;}
.eb-coupon__b strong{display:block;color:var(--navy);margin:5px 0 3px;font-size:13.5px;}
.eb-coupon__b p{margin:0;color:var(--muted);font-size:11.5px;line-height:1.4;}
.eb-coupon--amber .eb-coupon__v{background:#fff6df;}
.eb-coupon--green .eb-coupon__v{background:#e3f5ea;}
.eb-coupon--blue .eb-coupon__v{background:#e7eefb;}

/* success */
.eb-success{margin:14px;padding:24px 18px;text-align:center;background:#fff;border:1px solid var(--border);border-radius:14px;}
.eb-success__ic{width:64px;height:64px;border-radius:50%;background:#e3f5ea;color:#2f7d52;font-size:32px;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;}
.eb-success h1{margin:0 0 6px;font-size:19px;color:var(--navy);}

/* empty */
.eb-empty{margin:24px 14px;padding:36px 18px;text-align:center;background:#fff;border:1px solid var(--border);border-radius:14px;color:var(--muted);}
.eb-empty strong{display:block;color:var(--navy);font-size:16px;margin-bottom:6px;}

/* sticky buy bar */
.eb-buybar{position:fixed;left:0;right:0;bottom:56px;max-width:480px;margin:0 auto;background:#fff;border-top:1px solid var(--border);display:flex;gap:10px;padding:10px 14px;z-index:25;}
.eb-buybar .eb-btn{flex:1;}

/* checkout pay options */
.eb-pay{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #cfd9e2;border-radius:10px;margin-bottom:10px;}
.eb-pay.on{border-color:var(--teal);background:#f3fafc;}
.eb-pay strong{display:block;color:var(--navy);font-size:13.5px;}
.eb-pay small{display:block;margin-top:2px;color:var(--muted);font-size:11.5px;}
.eb-field{margin-bottom:12px;}
.eb-field label{display:block;margin-bottom:6px;color:var(--navy);font-weight:800;font-size:12.5px;}
.eb-field input{width:100%;height:44px;padding:0 12px;border:1px solid #cfd9e2;border-radius:10px;font-size:14px;outline:0;}
.eb-field input:focus{border-color:var(--teal);}

/* bottom tab */
.eb-tab{position:fixed;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;height:56px;background:#fff;border-top:1px solid var(--border);display:flex;z-index:40;}
.eb-tab a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#94a3b8;font-size:10.5px;font-weight:700;position:relative;}
.eb-tab a .ic{font-size:19px;line-height:1;}
.eb-tab a.on{color:var(--teal);}
.eb-tab a .tb{position:absolute;top:6px;right:50%;margin-right:-22px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--yellow);color:var(--navy);font-size:10px;font-weight:900;display:flex;align-items:center;justify-content:center;}

@media (max-width:360px){
  .eb-pcard__img{height:120px;}
  .eb-hero h1{font-size:19px;}
}

/* ---------- Phase 12: refined mobile home ---------- */
.eb-mhero2{margin:12px 14px;border-radius:16px;padding:24px 18px 18px;color:#fff;background-size:cover;background-position:center;min-height:208px;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:0 14px 30px rgba(15,47,77,.2);}
.eb-mhero2 .eb-eyebrow{color:#f7d774;}
.eb-mhero2 h1{margin:6px 0 12px;font-size:21px;line-height:1.26;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.3);}
.eb-mhero2__pills{display:flex;gap:7px;margin-bottom:14px;flex-wrap:wrap;}
.eb-mhero2__pills span{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);padding:4px 11px;border-radius:999px;font-size:11px;font-weight:800;}
.eb-coupbar{display:flex;align-items:center;gap:10px;margin:0 14px 2px;padding:10px 12px;border-radius:13px;background:linear-gradient(135deg,#fff4e0,#fff);border:1px dashed #e7c66a;}
.eb-coupbar__v{text-align:center;background:var(--yellow);color:var(--navy);border-radius:10px;padding:7px 11px;}
.eb-coupbar__v b{display:block;font-size:18px;line-height:1;}
.eb-coupbar__v small{font-size:9px;font-weight:800;}
.eb-coupbar__t{flex:1;min-width:0;}
.eb-coupbar__t b{display:block;color:var(--navy);font-size:13px;}
.eb-coupbar__t small{color:var(--muted);font-size:11px;overflow-wrap:anywhere;}
.eb-coupbar__go{background:var(--navy);color:#fff;font-weight:800;font-size:12px;padding:8px 13px;border-radius:9px;white-space:nowrap;}
.eb-catgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:0 14px;align-items:stretch;grid-auto-rows:1fr;}
.eb-catgrid a{display:flex;flex-direction:column;align-items:center;gap:7px;padding:11px 5px 9px;background:#fff;border:1px solid #e6edf3;border-radius:14px;box-shadow:0 1px 2px rgba(15,47,77,.04);}
.eb-catgrid__ic{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px rgba(15,47,77,.05);}
.eb-catgrid__ic img{width:28px;height:28px;display:block;}
.eb-catgrid a>span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;color:var(--navy);font-weight:700;text-align:center;line-height:1.2;min-height:24px;}
.eb-hscroll{display:flex;gap:10px;overflow-x:auto;padding:0 14px 4px;scrollbar-width:none;}
.eb-hscroll::-webkit-scrollbar{display:none;}
.eb-hscroll .eb-pcard{flex:0 0 152px;}
.eb-flashtimer{padding:3px 8px;border-radius:7px;background:#f2542d;color:#fff;font-size:11px;font-weight:900;}
.eb-pcard{position:relative;}
.eb-pcard__img.is-photo{object-fit:cover;background:#f1ece1;}
.eb-pcard__meta{padding-right:34px;}
.eb-pcard__add{position:absolute;right:8px;bottom:8px;width:30px;height:30px;border-radius:50%;border:0;background:var(--teal);color:#fff;font-size:20px;line-height:28px;font-weight:700;box-shadow:0 4px 10px rgba(28,107,134,.4);z-index:2;padding:0;}
