:root{
  --bg:#f5f6f7;
  --text:#111;
  --muted:#7b7b7b;
  --brand:#2c2c2c;
  --accent:#ff6b5a;
  --accent2:#ff3b30;
  --border:#e7e7e7;
  --btn-dark:#2b2b2b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{color:inherit;text-decoration:none}

.topbar{
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:sticky;
  top:0;
  z-index:30;
  background:var(--brand);
  color:#ffe088;
  letter-spacing:.5px;
  font-weight:600;
}
.topbar .left{
  position:absolute;
  left:12px;
  display:flex;
  align-items:center;
  gap:10px;
}
.icon-btn{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  color:#fff;
}

.page{
  max-width:480px;
  margin:0 auto;
  background:#fff;
  min-height:100vh;
  padding-bottom:84px;
}

.slider{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#eee;
}
.slides{
  display:flex;
  height:100%;
  transition:transform .25s ease;
  touch-action:pan-y;
}
.slide{
  flex:0 0 100%;
  height:100%;
  background:#f2f2f2;
  display:flex;
  align-items:center;
  justify-content:center;
}
.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.dots{
  position:absolute;
  bottom:10px;
  left:0;
  right:0;
  display:flex;
  justify-content:center;
  gap:6px;
}
.dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,.55);
}
.dot.active{background:rgba(255,255,255,.95)}

.pricebar{
  padding:10px 14px;
  background:var(--accent);
  display:flex;
  align-items:flex-end;
  gap:10px;
}
.price-main{
  font-size:30px;
  line-height:1;
  font-weight:800;
  color:#000;
}
.price-main .cur{
  font-size:12px;
  font-weight:700;
  margin-left:4px;
  color:#000;
}
.save-pill{
  font-size:12px;
  background:var(--accent2);
  color:#fff;
  padding:2px 8px;
  border-radius:999px;
  align-self:center;
}
.price-old{
  font-size:14px;
  color:rgba(0,0,0,.7);
  text-decoration:line-through;
}

.product-meta{
  padding:14px;
  border-bottom:1px solid var(--border);
}
.title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.product-title{
  font-size:18px;
  font-weight:700;
}
.sales{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  font-size:13px;
  color:#444;
}
.badge .pill{
  background:#f1f1f1;
  padding:6px 10px;
  border-radius:999px;
}

.content{
  padding:14px;
  line-height:1.55;
  color:#222;
}
.content img,
.content video,
.content iframe{
  max-width:100%;
}
.content img,
.content video{
  height:auto;
  display:block;
}
.content iframe{
  display:block;
  border:0;
}
.content h1,.content h2,.content h3{margin:14px 0 8px}
.content p{margin:8px 0}

.bottom-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  background:#fff;
  border-top:1px solid var(--border);
}
.bottom-inner{
  max-width:480px;
  margin:0 auto;
  display:flex;
  gap:10px;
  padding:10px;
  align-items:center;
}
.cart-area{
  display:flex;
  align-items:center;
  gap:10px;
}
.cart-icon{
  width:36px;
  height:36px;
  border-radius:10px;
  background:#f3f3f3;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.cart-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--accent2);
  color:#fff;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.btn{
  border:0;
  padding:12px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  width:100%;
}
.btn-outline{
  background:#fff;
  border:1px solid #d6d6d6;
}
.btn-dark{
  background:var(--btn-dark);
  color:#fff;
}
.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.whatsapp{
  position:fixed;
  right:16px;
  bottom:110px;
  width:46px;
  height:46px;
  border-radius:999px;
  background:#25d366;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:50;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

.checkout{
  background:var(--bg);
  min-height:100vh;
}
.checkout-card{
  max-width:820px;
  margin:0 auto;
  padding:0 12px 110px;
}
.checkout-header{
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:sticky;
  top:0;
  z-index:30;
  background:#fff;
  border-bottom:1px solid var(--border);
  font-weight:700;
}
.checkout-header .back{
  position:absolute;
  left:10px;
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
}
.order-summary{
  background:#fff;
  margin-top:12px;
  border-radius:10px;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.order-summary img{
  width:84px;
  height:84px;
  border-radius:10px;
  object-fit:cover;
  background:#eee;
}
.order-summary .name{
  font-weight:700;
  margin-bottom:6px;
}
.order-summary .p1{color:var(--accent2);font-weight:800;font-size:18px}
.order-summary .p2{text-decoration:line-through;color:#9a9a9a;font-size:13px;margin-top:3px}
.order-summary .p3{color:#64748b;font-size:12px;margin-top:6px;font-weight:800}
.order-summary .qty{
  margin-left:auto;
  color:#888;
  font-weight:700;
}
.notice{
  background:#fff;
  margin-top:12px;
  border-radius:10px;
  padding:14px;
  border:1px dashed #e2e2e2;
}
.notice b{display:block;margin-bottom:6px}
.notice ol{margin:0;padding-left:18px;color:#444}
.notice li{margin:4px 0}

.form{
  background:#fff;
  margin-top:12px;
  border-radius:10px;
  padding:14px;
}
.field{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}
.field:last-child{border-bottom:0}
.field label{
  width:120px;
  font-size:13px;
  color:#333;
  font-weight:700;
}
.req{color:var(--accent2);margin-right:3px}
.field input,.field select{
  width:100%;
  padding:10px 12px;
  border:1px solid #e1e1e1;
  border-radius:8px;
  font-size:14px;
  outline:none;
}
.field .static{
  width:100%;
  padding:10px 12px;
  border:1px solid #e1e1e1;
  border-radius:8px;
  font-size:14px;
  background:#f8fafc;
  color:#111;
  font-weight:700;
}
.field input:focus,.field select:focus{border-color:#bdbdbd}
.errors{
  background:#fff0f0;
  border:1px solid #ffd1d1;
  color:#b30000;
  border-radius:10px;
  padding:10px 12px;
  margin-top:12px;
  font-size:13px;
}

.pay-box{
  background:#fff;
  margin-top:12px;
  border-radius:10px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:700;
}
.pay-box .muted{color:#666;font-weight:600}

.cod-process{
  background:#fff;
  margin-top:12px;
  border-radius:10px;
  padding:14px;
  border:1px solid #eef2f7;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.cod-process-title{
  font-weight:900;
  color:#111;
  margin-bottom:8px;
}
.cod-process-text{
  color:#334155;
  font-weight:650;
  line-height:1.5;
  margin:6px 0;
}
.cod-process-foot{
  margin-top:10px;
  font-size:12px;
  color:#64748b;
  font-weight:850;
  line-height:1.5;
}

.checkout-footer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:#fff;
  border-top:1px solid var(--border);
  z-index:40;
}
.checkout-footer .inner{
  max-width:820px;
  margin:0 auto;
  padding:10px 12px;
  display:flex;
  gap:12px;
  align-items:center;
}
.checkout-footer .total{
  font-weight:800;
  color:var(--accent2);
  min-width:120px;
  text-align:left;
}
.checkout-footer .complete{
  border-radius:8px;
  background:var(--btn-dark);
  color:#fff;
  font-weight:800;
  font-size:14px;
  padding:14px 16px;
  width:100%;
  border:0;
}

body.admin{
  background:linear-gradient(180deg,#f6f7fb 0%,#eef2ff 100%);
}

.admin2{
  background:#f8fafc;
  color:#0f172a;
}
.ad-topbar{
  position:sticky;
  top:0;
  z-index:80;
  background:rgba(248,250,252,.86);
  backdrop-filter:saturate(1.8) blur(10px);
  border-bottom:1px solid #e2e8f0;
}
.ad-topbar-inner{
  max-width:1560px;
  margin:0 auto;
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.ad-left{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
.ad-nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.ad-nav a{
  font-size:13px;
  font-weight:900;
  color:#334155;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.ad-nav a:hover{
  background:#fff;
  border-color:#e2e8f0;
}
.ad-nav a.active{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.ad-title{
  font-size:15px;
  font-weight:900;
  letter-spacing:.2px;
  color:#0f172a;
}
.ad-right{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.ad-link{
  font-size:13px;
  font-weight:800;
  color:#334155;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.ad-link:hover{
  background:#fff;
  border-color:#e2e8f0;
}
.ad-link.active{
  background:#fff;
  border-color:#cbd5e1;
  color:#0f172a;
}
.ad-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #e2e8f0;
  background:#fff;
  color:#0f172a;
  font-weight:900;
  font-size:13px;
}
.ad-btn-primary{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.ad-btn-primary:hover{opacity:.92}
.ad-main{
  max-width:1560px;
  margin:0 auto;
  padding:24px;
}
.ad-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.ad-card-pad{padding:24px}
.ad-h{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:16px;
}
.ad-h-title{
  font-size:18px;
  font-weight:950;
}
.ad-h-sub{font-size:13px;color:#64748b;margin-top:6px}
.ad-filters{
  display:grid;
  grid-template-columns:1.5fr repeat(4,minmax(0,1fr));
  gap:12px;
}
@media (max-width:980px){
  .ad-filters{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .ad-filters{grid-template-columns:1fr}
}
.ad-input,.ad-select{
  width:100%;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  font-weight:700;
  outline:none;
  background:#fff;
  color:#0f172a;
}
.ad-input:focus,.ad-select:focus{border-color:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.25)}
.ad-table-wrap{overflow:auto}
.ad-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:980px;
  table-layout:fixed;
}
.ad-table th,.ad-table td{
  padding:14px 16px;
  border-bottom:1px solid #e2e8f0;
  text-align:left;
  font-size:13px;
  vertical-align:middle;
  color:#0f172a;
}
.ad-table th{
  font-size:12px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#64748b;
  background:#f8fafc;
  position:sticky;
  top:0;
}
.ad-row:hover td{background:#fbfdff}
.ad-prod{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}
.ad-thumb{
  width:80px;
  height:80px;
  border-radius:8px;
  background:linear-gradient(135deg,#f1f5f9 0%,#e2e8f0 100%);
  border:1px solid #e2e8f0;
  overflow:hidden;
  flex:0 0 auto;
}
.ad-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ad-prod-title{
  font-weight:950;
  font-size:13px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:340px;
}
.ad-prod-slug{
  font-size:12px;
  color:#64748b;
  margin-top:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:340px;
}
.ad-td-nowrap{white-space:nowrap}
.ad-td-actions{white-space:nowrap}
.ad-badge{white-space:nowrap}

.ad-action{
  padding:7px 10px;
}
.ad-action-ghost{
  background:#fff;
  border-color:#e2e8f0;
  color:#0f172a;
}
.ad-action-ghost:hover{background:#f8fafc}
.ad-action-more{
  position:relative;
}
.ad-more-btn{
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:10px;
  padding:7px 10px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  color:#0f172a;
}
.ad-more-btn:hover{background:#f8fafc}
.ad-pop{
  position:absolute;
  right:0;
  top:36px;
  width:220px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  box-shadow:0 18px 48px rgba(15,23,42,.14);
  padding:10px;
  display:none;
  z-index:140;
}
.ad-pop.show{display:block}
.ad-pop-sec{margin-top:8px}
.ad-pop-sep{height:1px;background:#e2e8f0;margin:10px 0}
.ad-pop a,.ad-pop button{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  border:1px solid transparent;
  background:transparent;
  padding:9px 10px;
  border-radius:10px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  color:#0f172a;
  text-align:left;
}
.ad-pop a:hover,.ad-pop button:hover{background:#f8fafc}
.ad-pop button.danger{color:#b91c1c}
.ad-pop button.danger:hover{background:#fff1f2}
.ad-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  color:#0f172a;
}
.ad-badge-green{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.ad-badge-yellow{background:#fffbeb;border-color:#fde68a;color:#92400e}
.ad-badge-red{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.ad-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.ad-action{
  border:1px solid #e2e8f0;
  background:#fff;
  color:#0f172a;
  border-radius:10px;
  padding:8px 10px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
}
.ad-action-primary{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}
.ad-action-primary:hover{opacity:.92}
.ad-action:hover{background:#f8fafc}
.ad-action-danger{border-color:#fecaca;color:#991b1b;background:#fff}
.ad-action-danger:hover{background:#fff5f5}
.ad-action-col{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
  min-width:120px;
}
.ad-action-sep{
  height:1px;
  background:#e2e8f0;
  margin:4px 0;
}
.ad-toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  font-weight:900;
  color:#334155;
  padding:6px 0;
}
.ad-switch{
  position:relative;
  width:44px;
  height:24px;
  flex:0 0 auto;
}
.ad-switch input{
  position:absolute;
  inset:0;
  opacity:0;
  margin:0;
  cursor:pointer;
}
.ad-switch span{
  position:absolute;
  inset:0;
  background:#cbd5e1;
  border-radius:999px;
  transition:background .15s ease;
}
.ad-switch span:after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 4px 10px rgba(15,23,42,.12);
  transition:transform .15s ease;
}
.ad-switch input:checked + span{background:#22c55e}
.ad-switch input:checked + span:after{transform:translateX(20px)}
.ad-switch input:disabled + span{opacity:.6;cursor:not-allowed}
.ad-toast{
  position:fixed;
  right:18px;
  top:78px;
  z-index:160;
  background:#0f172a;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  font-size:12px;
  box-shadow:0 16px 40px rgba(15,23,42,.18);
  display:none;
}
.ad-toast.show{display:block}
.ad-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 16px;
}
.ad-pages{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.ad-pagebtn{
  border:1px solid #e2e8f0;
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-weight:900;
  font-size:12px;
  color:#0f172a;
  cursor:pointer;
}
.ad-pagebtn.active{background:#111827;border-color:#111827;color:#fff}
.ad-user{position:relative}
.ad-avatar{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#fff;
  font-weight:950;
  cursor:pointer;
  color:#0f172a;
}
.ad-menu{
  position:absolute;
  right:0;
  top:46px;
  min-width:160px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  box-shadow:0 16px 40px rgba(15,23,42,.12);
  padding:8px;
  display:none;
}
.ad-menu.show{display:block}
.ad-menu a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  font-weight:800;
  font-size:13px;
  color:#0f172a;
}
.ad-menu a:hover{background:#f8fafc}
.ad-modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:none;
}
.ad-modal.show{display:block}
.ad-modal-mask{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.55);
}
.ad-modal-card{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(520px,calc(100% - 32px));
  background:#fff;
  border-radius:12px;
  padding:24px;
  border:1px solid #e2e8f0;
  box-shadow:0 20px 60px rgba(15,23,42,.2);
}
.ad-modal-title{font-size:16px;font-weight:950}
.ad-modal-sub{color:#64748b;font-size:13px;margin-top:8px}
.ad-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
.ad-mobile-list{display:none}
@media (max-width:720px){
  .ad-table{display:none}
  .ad-mobile-list{display:block}
  .ad-prod{min-width:0}
}
.ad-mcard{
  display:flex;
  gap:12px;
  padding:16px;
  border-top:1px solid #e2e8f0;
}
.ad-mcard:first-child{border-top:0}
.ad-mmeta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.ad-mmeta b{color:#0f172a}

.admin-shell{
  max-width:1200px;
  margin:0 auto;
  padding:26px 18px 40px;
}
.admin-top{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
  box-shadow:0 10px 26px rgba(16,24,40,.08);
}
.admin-top .title{
  font-size:22px;
  font-weight:900;
  letter-spacing:.2px;
}
.admin-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.admin-actions a{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:700;
  font-size:13px;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.admin-actions a:active{transform:translateY(0)}
.admin-actions a:hover{
  background:#fafafa;
  border-color:#dcdcdc;
  transform:translateY(-1px);
}
.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(16,24,40,.08);
  border:1px solid var(--border);
}
.table th,.table td{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:13px;
}
.table th{
  background:#fbfbfe;
  font-weight:900;
  color:#111827;
}
.table tbody tr:nth-child(even){background:#fcfcfc}
.table tbody tr:hover{background:#f6f8ff}
.table tr:last-child td{border-bottom:0}
.admin-form{
  background:#fff;
  padding:16px;
  border-radius:14px;
  border:1px solid var(--border);
  box-shadow:0 10px 26px rgba(16,24,40,.08);
}
.admin-form .row{display:flex;gap:10px;flex-wrap:wrap}
.admin-form .col{flex:1 1 220px}
.admin-form input,.admin-form textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
}
.admin-form textarea{min-height:160px;resize:vertical}
.admin-form .label{font-size:12px;font-weight:800;color:#444;margin-bottom:6px}
.admin-form .btn-row{display:flex;gap:10px;margin-top:12px}
.admin-form .btn-row button{
  border:0;
  background:var(--btn-dark);
  color:#fff;
  font-weight:800;
  padding:12px 14px;
  border-radius:10px;
  cursor:pointer;
}
.admin-form .secondary{
  background:#fff;
  color:#222;
  border:1px solid var(--border);
}
.status-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid var(--border);
  background:#fff;
}
.status-new{color:#8a5b00;background:#fff7e6;border-color:#ffe6b3}
.status-shipped{color:#0b6b2e;background:#e8fff0;border-color:#b7f0c8}
.status-delivered{color:#0b3b6b;background:#eaf3ff;border-color:#bcd7ff}
.status-rejected{color:#8a1f1f;background:#ffecec;border-color:#ffbdbd}
.status-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.status-actions form{margin:0}
.btn-mini{
  border:1px solid var(--border);
  background:#fff;
  color:#111827;
  border-radius:10px;
  padding:8px 10px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.btn-mini:hover{background:#fbfbfb;border-color:#dcdcdc;transform:translateY(-1px)}
.btn-mini:active{transform:translateY(0)}
.btn-mini.active{
  background:var(--btn-dark);
  border-color:var(--btn-dark);
  color:#fff;
}

.errors{
  margin:10px 0;
  padding:10px 12px;
  border-radius:12px;
  background:#fff1f1;
  border:1px solid #ffd0d0;
  color:#8a1f1f;
  font-weight:800;
}
.success{
  margin:10px 0;
  padding:10px 12px;
  border-radius:12px;
  background:#e8fff0;
  border:1px solid #b7f0c8;
  color:#0b6b2e;
  font-weight:800;
}
.admin-login{
  max-width:420px;
  margin:48px auto;
  padding:0 12px;
}
.admin-login .card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
}
.admin-login h1{margin:0 0 12px;font-size:22px}
.admin-login .field2{margin:10px 0}
.admin-login input{
  width:100%;
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 12px;
  font-size:14px;
}
.admin-login button{
  width:100%;
  margin-top:10px;
  border:0;
  border-radius:10px;
  padding:12px 14px;
  font-weight:900;
  background:var(--btn-dark);
  color:#fff;
}

body.home{
  background:#f8fafc;
}
.shop-header{
  position:sticky;
  top:0;
  z-index:60;
  background:#0b1220;
  color:#fff;
}
.shop-header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.shop-brand{
  font-weight:950;
  letter-spacing:.2px;
}
.shop-mini{
  font-size:12px;
  color:rgba(255,255,255,.72);
  font-weight:800;
  text-align:right;
}
.shop-hero{
  background:radial-gradient(1200px 420px at 50% -80px,#fff 0%,#f8fafc 55%,#f1f5f9 100%);
  border-bottom:1px solid #e2e8f0;
}
.shop-hero-inner{
  max-width:1200px;
  margin:0 auto;
  padding:26px 14px 18px;
}
.shop-hero-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-weight:950;
  font-size:12px;
}
.shop-hero-title{
  margin:14px 0 8px;
  font-size:28px;
  line-height:1.12;
  font-weight:1000;
  letter-spacing:-.02em;
  color:#0f172a;
}
.shop-hero-sub{
  color:#475569;
  font-weight:800;
  max-width:720px;
  line-height:1.5;
}
.shop-hero-actions{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.shop-hero-note{
  font-size:12px;
  color:#64748b;
  font-weight:900;
}
.shop-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:12px;
  font-weight:950;
  font-size:13px;
  border:1px solid #e2e8f0;
  background:#fff;
  color:#0f172a;
}
.shop-btn-primary{
  background:#ef4444;
  border-color:#ef4444;
  color:#fff;
}
.shop-btn-primary:hover{opacity:.94}
.shop-btn-buy{
  background:#0f172a;
  border-color:#0f172a;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
}
.shop-btn-buy:hover{opacity:.92}
.shop-trust{
  max-width:1200px;
  margin:0 auto;
  padding:14px 14px 4px;
}
.shop-trust-inner{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
@media (max-width:780px){
  .shop-trust-inner{grid-template-columns:1fr}
}
.trust-item{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:14px;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.trust-title{font-weight:950;color:#0f172a}
.trust-sub{margin-top:6px;font-size:12px;color:#64748b;font-weight:800}
.shop-shell{
  max-width:1200px;
  margin:0 auto;
  padding:16px 14px 34px;
}
.shop-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:12px 0 14px;
}
.shop-section-title{
  font-size:18px;
  font-weight:1000;
  color:#0f172a;
}
.shop-section-sub{
  font-size:12px;
  color:#64748b;
  font-weight:900;
}
.shop-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
@media (min-width:860px){
  .shop-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .shop-hero-title{font-size:34px}
}
.shop-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  display:flex;
  flex-direction:column;
}
.shop-card-media{
  position:relative;
  width:100%;
  height:0;
  padding-top:75%;
  background:#f1f5f9;
  display:block;
}
.shop-card-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.shop-ph{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#f1f5f9 0%,#e2e8f0 100%);
}
.shop-badges{
  position:absolute;
  left:10px;
  top:10px;
  display:flex;
  gap:8px;
}
.shop-badge{
  padding:6px 10px;
  border-radius:999px;
  font-weight:1000;
  font-size:12px;
  color:#fff;
}
.shop-badge-hot{background:#ef4444}
.shop-badge-off{background:#111827}
.shop-card-body{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.shop-card-title{
  font-weight:950;
  color:#0f172a;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:34px;
}
.shop-card-slug{
  font-size:12px;
  color:#64748b;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.shop-price-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}
.shop-price{
  font-weight:1000;
  color:#ef4444;
  font-size:16px;
}
.shop-price .cur{font-size:12px;color:#ef4444;margin-left:4px}
.shop-compare{
  font-size:12px;
  color:#94a3b8;
  font-weight:900;
  text-decoration:line-through;
  white-space:nowrap;
}
.shop-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:4px;
}
.shop-sales{
  font-size:12px;
  color:#64748b;
  font-weight:900;
  white-space:nowrap;
}
.shop-footer{
  border-top:1px solid #e2e8f0;
  background:#fff;
}
.shop-footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:16px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.shop-footer-brand{font-weight:1000;color:#0f172a}
.shop-footer-sub{font-size:12px;color:#64748b;font-weight:900;text-align:right}

.cart-icon{cursor:pointer}
.cart-modal{
  position:fixed;
  inset:0;
  z-index:60;
  display:none;
}
.cart-modal.show{display:block}
.cart-mask{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}
.cart-panel{
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(480px,100%);
  background:#fff;
  border-radius:16px 16px 0 0;
  border:1px solid var(--border);
  box-shadow:0 -10px 30px rgba(0,0,0,.18);
  padding:12px 12px 14px;
}
.cart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:900;
}
.cart-close{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.cart-item{
  margin-top:10px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  display:flex;
  gap:10px;
  align-items:center;
}
.cart-item img{
  width:58px;
  height:58px;
  border-radius:12px;
  object-fit:cover;
  background:#eee;
}
.cart-name{font-weight:900;font-size:13px;line-height:1.3}
.cart-sub{font-size:12px;color:var(--muted);margin-top:4px}
.cart-qty{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.qty-btn{
  width:32px;
  height:32px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-weight:900;
}
.cart-qty .num{min-width:18px;text-align:center;font-weight:900}
.cart-footer{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:center;
}
.cart-total{font-weight:900;color:var(--accent2);min-width:120px}
.cart-clear{
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:12px 12px;
  font-weight:900;
  cursor:pointer;
}
.cart-checkout{
  border:0;
  background:var(--btn-dark);
  color:#fff;
  border-radius:12px;
  padding:12px 12px;
  font-weight:900;
  cursor:pointer;
  width:100%;
}
.cart-empty{
  margin-top:10px;
  padding:14px 12px;
  border-radius:12px;
  border:1px dashed var(--border);
  color:#555;
  background:#fafafa;
  font-weight:700;
  text-align:center;
}
