:root{
  --bg:#f5f5f5;
  --card:#ffffff;
  --text:#1f2329;
  --muted:#6b7280;
  --line:rgba(17,24,39,.10);
  --shadow:0 10px 30px rgba(17,24,39,.10);
  --shadow2:0 18px 48px rgba(17,24,39,.14);
  --brand:#ff5000;
  --brand2:#ff2f5e;
  --ok:#16a34a;
  --warn:#f59e0b;
  --bad:#ef4444;
  --radius:14px;
  --radius2:18px;
  --font:MiSans,OPPOSans,"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,80,0,.18), transparent 55%),
    radial-gradient(1000px 520px at 86% 0%, rgba(255,47,94,.12), transparent 52%),
    linear-gradient(180deg, #fff 0, var(--bg) 140px);
}

a{color:inherit;text-decoration:none}
button,input,textarea,select{font-family:inherit}

.app{min-height:100%;display:flex;flex-direction:column}

.container{max-width:1180px;margin:0 auto;padding:0 18px}

.topbar{
  position:sticky;top:0;z-index:40;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar__inner{display:flex;align-items:center;gap:16px;padding:14px 0}
.brand{display:flex;align-items:baseline;gap:6px;padding:8px 10px;border-radius:999px}
.brand:hover{background:rgba(255,80,0,.06)}
.brand__mark{
  font-weight:900;
  letter-spacing:.5px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  font-size:18px;
}
.brand__name{font-weight:800;font-size:14px;color:#111827}

.search{
  flex:1;
  display:flex;
  align-items:center;
  padding:6px;
  border-radius:999px;
  background:rgba(17,24,39,.04);
  border:1px solid rgba(255,80,0,.18);
  box-shadow:0 4px 18px rgba(255,80,0,.10);
}
.search__input{
  flex:1;
  border:0;
  outline:none;
  background:transparent;
  padding:10px 12px;
  font-size:14px;
}
.search__btn{padding:10px 14px;border-radius:999px}

.topnav{display:flex;align-items:center;gap:12px}
.topnav__item{
  font-size:13px;
  color:#374151;
  padding:8px 10px;
  border-radius:10px;
}
.topnav__item:hover{background:rgba(17,24,39,.04)}
.topnav__cart{position:relative}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;height:18px;
  padding:0 6px;
  margin-left:6px;
  font-size:12px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
}

.account{display:flex;align-items:center;gap:10px}
.account__btn{
  display:flex;align-items:center;gap:10px;
  padding:8px 12px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  box-shadow:0 8px 18px rgba(17,24,39,.06);
  cursor:pointer;
}
.avatar{
  width:28px;height:28px;border-radius:999px;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.8), rgba(255,255,255,0) 55%),
    linear-gradient(135deg,var(--brand),var(--brand2));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:900;font-size:13px;
}
.account__name{font-size:13px;font-weight:700}
.account__hint{font-size:12px;color:var(--muted)}
.accountMenu{
  position:absolute;
  top:54px;right:0;
  width:220px;
  border-radius:16px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--line);
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.accountMenu__item{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;font-size:13px}
.accountMenu__item:hover{background:rgba(17,24,39,.04)}

.subbar{border-top:1px dashed rgba(17,24,39,.10)}
.subbar__inner{display:flex;align-items:center;justify-content:space-between;padding:10px 0;gap:14px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  padding:8px 12px;
  border:1px solid rgba(255,80,0,.14);
  border-radius:999px;
  background:#fff;
  font-size:13px;
  cursor:pointer;
  user-select:none;
}
.chip:hover{box-shadow:0 10px 22px rgba(255,80,0,.10)}
.chip.is-active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
}
.subActions{display:flex;align-items:center;gap:10px}

.main{flex:1;padding:18px 0 28px}

.card{
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
}
.card__hd{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}
.card__bd{padding:18px}
.card__title{font-size:16px;font-weight:900;letter-spacing:.2px}
.muted{color:var(--muted)}

.grid{display:grid;gap:14px}
.grid--2{grid-template-columns:1.2fr .8fr}
.grid--products{grid-template-columns:repeat(4,1fr)}

.hero{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  min-height:160px;
  border:1px solid rgba(255,80,0,.18);
  box-shadow:0 16px 46px rgba(255,80,0,.14);
  background:#fff;
}
.hero__img{width:100%;height:200px;object-fit:cover;display:block}
.hero__overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.48), rgba(0,0,0,0) 55%);
}
.hero__content{position:absolute;left:18px;top:18px;max-width:560px;color:#fff}
.hero__title{font-size:22px;font-weight:1000;letter-spacing:.3px}
.hero__desc{opacity:.92;margin-top:8px;font-size:13px;line-height:1.6}
.hero__cta{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}

.btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{box-shadow:0 14px 30px rgba(17,24,39,.10);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn--primary{
  border-color:transparent;
  color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow:0 12px 26px rgba(255,80,0,.22);
}
.btn--ghost{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.28);color:#fff}
.btn--danger{border-color:rgba(239,68,68,.30);color:#fff;background:linear-gradient(135deg,#ef4444,#fb7185)}
.btn--muted{background:rgba(17,24,39,.04)}
.btn--block{width:100%}

.field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.label{font-size:12px;color:#374151;font-weight:700}
.input,.select,.textarea{
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(17,24,39,.14);
  outline:none;
  background:#fff;
  font-size:14px;
}
.textarea{min-height:90px;resize:vertical}
.help{font-size:12px;color:var(--muted);line-height:1.6}
.error{font-size:12px;color:var(--bad);line-height:1.6}
.row{display:flex;gap:12px}
.row>*{flex:1}

.kpis{display:flex;gap:12px;flex-wrap:wrap}
.kpi{
  flex:1;
  min-width:160px;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#fff,rgba(17,24,39,.02));
}
.kpi__v{font-size:18px;font-weight:1000}
.kpi__k{font-size:12px;color:var(--muted);margin-top:6px}

.productCard{
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(17,24,39,.10);
  box-shadow:0 10px 26px rgba(17,24,39,.08);
  display:flex;
  flex-direction:column;
  min-height:320px;
}
.productCard:hover{box-shadow:0 18px 48px rgba(17,24,39,.14);transform:translateY(-2px)}
.productCard__img{width:100%;height:188px;object-fit:cover;display:block;background:#f3f4f6}
.productCard__bd{padding:12px 12px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
.productCard__title{font-size:13px;font-weight:800;line-height:1.35;max-height:2.7em;overflow:hidden}
.productCard__shop{font-size:12px;color:var(--muted)}
.priceRow{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.price{font-size:18px;font-weight:1000;color:#111827}
.price small{font-size:12px;font-weight:800;color:#6b7280;margin-left:6px;text-decoration:line-through}
.tagRow{display:flex;gap:6px;flex-wrap:wrap}
.tag{
  font-size:11px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,80,0,.08);
  color:#9a3412;
  border:1px solid rgba(255,80,0,.12);
}

.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
.toolbar__left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.toolbar__right{display:flex;align-items:center;gap:10px}
.seg{display:flex;gap:6px;padding:6px;border-radius:999px;background:rgba(17,24,39,.04);border:1px solid rgba(17,24,39,.08)}
.seg button{border:0;background:transparent;padding:8px 10px;border-radius:999px;font-size:12px;cursor:pointer;color:#374151}
.seg button.is-on{background:#fff;box-shadow:0 8px 18px rgba(17,24,39,.08);font-weight:900}

.twoCol{display:grid;grid-template-columns:1fr 1fr;gap:16px}

.gallery{
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
}
.gallery__main{width:100%;height:360px;object-fit:cover;display:block}
.thumbs{display:flex;gap:8px;padding:10px;overflow:auto}
.thumb{width:70px;height:70px;border-radius:14px;object-fit:cover;border:1px solid rgba(17,24,39,.12);cursor:pointer}
.thumb.is-on{outline:3px solid rgba(255,80,0,.35);border-color:rgba(255,80,0,.30)}

.specs{display:flex;flex-direction:column;gap:10px}
.specGroup{display:flex;flex-direction:column;gap:8px}
.specOps{display:flex;gap:8px;flex-wrap:wrap}
.specOp{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.14);
  background:#fff;
  cursor:pointer;
  font-size:13px;
}
.specOp:hover{box-shadow:0 14px 24px rgba(17,24,39,.10)}
.specOp.is-on{border-color:transparent;color:#fff;background:linear-gradient(135deg,var(--brand),var(--brand2))}
.stepper{display:flex;align-items:center;gap:10px}
.stepper button{width:38px;height:38px;border-radius:12px}
.stepper input{width:68px;text-align:center}

.stickyBar{
  position:sticky;
  bottom:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border-radius:20px;
  background:rgba(255,255,255,.90);
  backdrop-filter:saturate(1.2) blur(10px);
  border:1px solid rgba(17,24,39,.12);
  box-shadow:var(--shadow2);
}

.table{display:flex;flex-direction:column;gap:10px}
.lineItem{
  display:grid;
  grid-template-columns:28px 90px 1fr 160px 110px 90px;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,rgba(17,24,39,.02));
}
.lineItem img{width:90px;height:90px;border-radius:16px;object-fit:cover;border:1px solid rgba(17,24,39,.08)}
.liTitle{font-size:13px;font-weight:900;line-height:1.35}
.liSpec{font-size:12px;color:var(--muted);margin-top:6px}
.liOps{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.checkbox{width:18px;height:18px}

.pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 10px;border-radius:999px;font-size:12px;
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
}
.pill--ok{border-color:rgba(22,163,74,.24);color:#166534;background:rgba(22,163,74,.06)}
.pill--warn{border-color:rgba(245,158,11,.28);color:#92400e;background:rgba(245,158,11,.10)}
.pill--bad{border-color:rgba(239,68,68,.28);color:#991b1b;background:rgba(239,68,68,.08)}

.addressCard{
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(17,24,39,.10);
  background:linear-gradient(180deg,#fff,rgba(17,24,39,.02));
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
}
.addrMain{display:flex;flex-direction:column;gap:6px}
.addrName{font-weight:1000}
.addrText{color:var(--muted);font-size:13px;line-height:1.5}
.addrOps{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

.footer{margin-top:auto;background:rgba(255,255,255,.92);border-top:1px solid var(--line)}
.footer__inner{padding:22px 0}
.footer__cols{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:18px}
.footer__title{font-weight:1000;margin-bottom:10px}
.footer__desc{color:var(--muted);font-size:13px;line-height:1.7}
.footer__links{display:flex;flex-direction:column;gap:8px;font-size:13px}
.footer__links a{color:#374151}
.footer__links a:hover{color:#111827}
.footer__bar{margin-top:16px;padding-top:14px;border-top:1px dashed rgba(17,24,39,.14);display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.footer__bar a{color:var(--muted)}
.footer__bar a:hover{color:#111827}

.toastHost{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:70;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.toast{
  width:min(360px,calc(100vw - 28px));
  border-radius:18px;
  background:rgba(17,24,39,.92);
  color:#fff;
  padding:12px 14px;
  box-shadow:var(--shadow2);
  border:1px solid rgba(255,255,255,.14);
}
.toast__k{font-weight:900}
.toast__v{font-size:13px;opacity:.92;margin-top:6px;line-height:1.5}

.modalHost{
  position:fixed;
  inset:0;
  z-index:80;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(15,23,42,.46);
  backdrop-filter:saturate(1.2) blur(8px);
}
.modalHost.is-on{display:flex}
.modal{
  width:min(880px,calc(100vw - 32px));
  max-height:min(84vh,820px);
  overflow:auto;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(17,24,39,.12);
  box-shadow:var(--shadow2);
}
.modal__hd{position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.modal__bd{padding:16px}

.fab{
  position:fixed;
  right:16px;
  bottom:92px;
  z-index:60;
  border:0;
  cursor:pointer;
  width:56px;height:56px;
  border-radius:20px;
  color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow:0 18px 46px rgba(255,80,0,.28);
}
.fab__icon{font-weight:1000;letter-spacing:.2px}
.fab__badge{
  position:absolute;
  top:-8px;right:-8px;
  width:22px;height:22px;
  border-radius:999px;
  background:#111827;
  border:2px solid #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
}

@media (max-width: 1100px){
  .grid--products{grid-template-columns:repeat(3,1fr)}
}

@media (max-width: 960px){
  .topbar__inner{flex-wrap:wrap}
  .search{order:3;flex-basis:100%}
  .grid--2{grid-template-columns:1fr}
  .grid--products{grid-template-columns:repeat(2,1fr)}
  .twoCol{grid-template-columns:1fr}
  .lineItem{grid-template-columns:28px 90px 1fr;grid-template-rows:auto auto auto;align-items:start}
  .lineItem .liOps{justify-content:flex-start}
  .footer__cols{grid-template-columns:1fr}
}

@media (prefers-reduced-motion: reduce){
  .btn{transition:none}
  .productCard:hover{transform:none}
}
