/* ShipXpress Comercio Pro */
.comercio-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.comercio-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.comercio-tabs a{
  padding:10px 13px;
  border-radius:14px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
  color:#d7e5f4;
  font-weight:900;
}
.comercio-tabs a.active,
.comercio-tabs a:hover{
  background:rgba(255,140,0,.16);
  color:#fff;
}
.comercio-search{
  min-width:min(380px,100%);
  background:#0b1118;
  color:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  padding:13px 14px;
  outline:none;
}
.comercio-search:focus{
  border-color:rgba(255,140,0,.65);
  box-shadow:0 0 0 4px rgba(255,140,0,.1);
}
.comercio-form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.comercio-form-grid .full{grid-column:1/-1}
.comercio-form-grid input,
.comercio-form-grid select,
.comercio-form-grid textarea{
  width:100%;
  background:#0b1118;
  color:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:13px 14px;
  outline:none;
}
.comercio-form-grid input:focus,
.comercio-form-grid select:focus,
.comercio-form-grid textarea:focus{
  border-color:rgba(255,140,0,.65);
  box-shadow:0 0 0 4px rgba(255,140,0,.1);
}
.horario-editor{
  background:#0b1118;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
}
.horario-editor-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}
.horario-editor-head strong{
  display:block;
  color:#fff;
  font-size:16px;
}
.horario-editor-head p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.horario-row{
  display:grid;
  grid-template-columns:minmax(130px,1fr) 130px 130px;
  gap:10px;
  align-items:end;
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,.07);
}
.horario-row:first-of-type{border-top:0}
.horario-row label{
  color:#d7e5f4;
  font-weight:900;
  font-size:13px;
}
.horario-row label span{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:4px;
}
.horario-row input[type="checkbox"]{
  width:auto;
  margin-right:8px;
}
.horario-row input[type="time"]{
  padding:10px 11px;
}
.comercio-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.btn-mini{
  border:0;
  cursor:pointer;
  border-radius:12px;
  padding:8px 10px;
  font-weight:1000;
  font-size:12px;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid var(--line);
}
.btn-mini.ok{background:rgba(57,255,20,.13);color:#d4ffcf;border-color:rgba(57,255,20,.25)}
.btn-mini.warn{background:rgba(255,140,0,.13);color:#ffd7a7;border-color:rgba(255,140,0,.25)}
.btn-mini.bad{background:rgba(255,77,77,.13);color:#ffd0d0;border-color:rgba(255,77,77,.25)}
.btn-mini:hover{transform:translateY(-1px)}
.comercio-profile{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:22px;
  align-items:start;
}
.comercio-logo-box{
  border-radius:26px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  min-height:180px;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.comercio-logo-box img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-img{
  width:58px;
  height:58px;
  border-radius:16px;
  object-fit:contain;
  background:#0b1118;
  padding:4px;
  border:1px solid var(--line);
  display:block;
}
.store-status-shell{margin-bottom:18px}
.store-status-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  padding:22px;
  border-radius:30px;
  background:linear-gradient(135deg,rgba(255,140,0,.18),rgba(57,255,20,.08));
  border:1px solid rgba(255,140,0,.23);
  box-shadow:var(--shadow);
}
.store-status-card.offline{
  background:linear-gradient(135deg,rgba(255,77,77,.12),rgba(255,140,0,.08));
  border-color:rgba(255,77,77,.22);
}
.store-status-logo{
  width:86px;
  height:86px;
  border-radius:28px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#0b1118;
  border:1px solid var(--line);
  color:#ffb23f;
  font-weight:1000;
  font-size:24px;
}
.store-status-logo img{width:100%;height:100%;object-fit:contain;padding:5px}
.store-status-main small{
  display:block;
  color:#ffb23f;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:5px;
}
.store-status-main h2{font-size:28px;color:#fff;margin-bottom:5px}
.store-status-main p{color:var(--muted);font-weight:800;line-height:1.45}
.store-alert{
  margin-top:10px;
  padding:10px 12px;
  border-radius:15px;
  color:#ffd1d1;
  background:rgba(255,77,77,.12);
  border:1px solid rgba(255,77,77,.22);
  font-weight:900;
}
.store-status-actions{display:grid;gap:10px;justify-items:end}
.store-state-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:112px;
  padding:9px 13px;
  border-radius:999px;
  font-weight:1000;
  border:1px solid var(--line);
}
.store-state-pill.online{color:#c7ffc0;background:rgba(57,255,20,.12);border-color:rgba(57,255,20,.25)}
.store-state-pill.offline{color:#ffc4c4;background:rgba(255,77,77,.12);border-color:rgba(255,77,77,.24)}
.delivery-chip{
  display:inline-flex;
  margin-top:7px;
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:1000;
  border:1px solid var(--line);
}
.delivery-chip.delivery{color:#c7ffc0;background:rgba(57,255,20,.11);border-color:rgba(57,255,20,.22)}
.delivery-chip.pickup{color:#bfdbfe;background:rgba(59,130,246,.14);border-color:rgba(59,130,246,.28)}
.order-money-card{
  min-width:210px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.order-money-card div{
  padding:8px 9px;
  border-radius:13px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
}
.order-money-card small{display:block;color:var(--muted);font-weight:900;font-size:11px;margin-bottom:3px}
.order-money-card strong{font-size:13px;color:#fff}
.order-money-card strong.ok{color:#c7ffc0}
.order-money-card strong.bad{color:#ffc4c4}
.price-old{
  color:#8ea0b4;
  text-decoration:line-through;
  font-weight:850;
  margin-right:6px;
}
.price-offer{color:#ff4d4d}
.liquidacion-card{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px;border-radius:28px;background:linear-gradient(135deg,rgba(255,140,0,.15),rgba(57,255,20,.08));border:1px solid rgba(255,140,0,.22);box-shadow:var(--shadow)}
.liquidacion-card small{display:block;color:#ffb23f;font-weight:1000;margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}
.liquidacion-card h2{color:#fff;font-size:26px;margin-bottom:6px}
.liquidacion-card p{color:var(--muted);font-weight:800;max-width:720px;line-height:1.45}
.liquidacion-actions{display:grid;gap:10px;justify-items:end;min-width:230px}
.liquidacion-actions strong{font-size:34px;color:#fff}
.liquidacion-form{display:grid;grid-template-columns:160px 1fr auto;gap:10px;min-width:min(560px,100%)}
.liquidacion-form input{background:#0b1118;color:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.chat-box{
  display:grid;
  gap:10px;
  max-height:360px;
  overflow:auto;
  padding:12px;
  background:#0b1118;
  border:1px solid var(--line);
  border-radius:18px;
}
.chat-msg{
  padding:11px 13px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
}
.chat-msg b{color:#ffb23f}
.comercio-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.62);
  z-index:300;
}
.comercio-modal.open{display:flex}
.comercio-modal-card{
  width:min(760px,100%);
  max-height:88vh;
  overflow:auto;
  border-radius:28px;
  background:#0d141d;
  border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  padding:24px;
}
.comercio-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:15px;
}
.comercio-proof-card{width:min(920px,100%)}
.comercio-proof-meta{
  margin:6px 0 0;
  color:var(--muted);
  font-weight:800;
}
.comercio-proof-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:14px;
}
.comercio-proof-summary div{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
}
.comercio-proof-summary small{
  display:block;
  color:var(--muted);
  font-weight:900;
  margin-bottom:4px;
}
.comercio-proof-summary strong{
  color:#fff;
  font-size:15px;
}
.comercio-proof-view{
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  background:#081018;
  min-height:260px;
  display:grid;
  place-items:center;
}
.comercio-proof-img{
  display:block;
  width:100%;
  max-height:68vh;
  object-fit:contain;
  background:#081018;
}
.comercio-proof-frame{
  width:100%;
  height:min(68vh,720px);
  min-height:420px;
  border:0;
  background:#fff;
}
.comercio-proof-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  margin-top:14px;
}
.pedido-panel-grid,
.producto-panel-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:14px 0;
}
.pedido-panel-grid .wide,
.producto-panel-grid .wide{grid-column:1/-1}
.info-tile{
  padding:14px 15px;
  border-radius:18px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
}
.info-tile small{
  display:block;
  color:var(--muted);
  font-weight:900;
  margin-bottom:5px;
}
.info-tile strong{color:#fff;line-height:1.35}
.option-group-card{
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,140,0,.22);
  background:rgba(255,140,0,.08);
  margin-top:12px;
}
.option-group-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:10px;
}
.option-items{
  display:grid;
  gap:8px;
}
.option-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
}
.mini-form{
  display:grid;
  grid-template-columns:1fr 130px auto;
  gap:8px;
  margin-top:10px;
}
.mini-form input{
  background:#0b1118;
  color:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
}
.muted{color:var(--muted);font-weight:800}
.comercio-toast{
  position:fixed;
  right:18px;
  bottom:18px;
  max-width:420px;
  z-index:350;
  padding:14px 16px;
  border-radius:18px;
  background:#111b25;
  color:#fff;
  border:1px solid var(--line);
  box-shadow:0 18px 45px rgba(0,0,0,.35);
  display:none;
}
.comercio-toast.show{display:block}
.comercio-toast.ok{border-color:rgba(57,255,20,.25)}
.comercio-toast.bad{border-color:rgba(255,77,77,.25)}
.link-file{color:#ffb23f;font-weight:900;text-decoration:underline}
.discount-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:12px;
  font-weight:950;
  margin-left:6px;
  box-shadow:0 8px 18px rgba(239,68,68,.24);
}
@media(max-width:900px){
  .comercio-form-grid,
  .comercio-profile,
  .pedido-panel-grid,
  .producto-panel-grid,
  .mini-form{grid-template-columns:1fr}
  .comercio-proof-summary{grid-template-columns:1fr}
  .comercio-proof-actions{justify-content:stretch}
  .comercio-proof-actions .btn{width:100%;justify-content:center}
  .liquidacion-card{display:grid}
  .liquidacion-actions{justify-items:stretch}
  .liquidacion-form{grid-template-columns:1fr}
  .store-status-card{grid-template-columns:1fr}
  .store-status-actions{justify-items:stretch}
  .store-status-logo{width:74px;height:74px}
  .order-money-card{grid-template-columns:1fr;min-width:170px}
  .horario-row{grid-template-columns:1fr}
}

/* ShipXpress realtime / preparación */
.sx-prep-card{display:flex;flex-direction:column;gap:4px;min-width:150px;padding:12px 14px;border-radius:16px;border:1px solid #f59e0b;background:#fef3c7;color:#92400e;font-weight:800;line-height:1.2;white-space:normal;box-sizing:border-box}
.sx-prep-card strong{font-size:15px;line-height:1.2;display:block;white-space:normal}
.sx-prep-card span{font-size:12px;opacity:.9;white-space:normal}
.sx-prep-card.sx-ready,.sx-prep-card.sx-ok{background:#dcfce7;border-color:#22c55e;color:#166534}
.sx-prep-card.sx-late{background:#fee2e2;border-color:#ef4444;color:#991b1b}
.sx-prep-card.sx-warn{background:#fef3c7;border-color:#f59e0b;color:#92400e}
.sx-team-card{margin-top:10px;padding:12px 14px;border-radius:16px;background:#eff6ff;border:1px solid #bfdbfe;color:#111827;font-size:13px;line-height:1.45}

/* Dashboard cards with compact operational icons */
.stats-grid .stat-card{
  position:relative;
  padding-top:54px;
}
.stats-grid .stat-card::before{
  content:"";
  position:absolute;
  top:16px;
  left:16px;
  width:34px;
  height:34px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(255,140,0,.13);
  color:#ff8c00;
  font-size:15px;
  font-weight:1000;
}
.stats-grid .stat-card:nth-child(1)::before{content:"N"}
.stats-grid .stat-card:nth-child(2)::before{content:"P"}
.stats-grid .stat-card:nth-child(3)::before{content:"OK"}
.stats-grid .stat-card:nth-child(4)::before{content:"$"}
.stats-grid .stat-card:nth-child(5)::before{content:"S"}
.stats-grid .stat-card:nth-child(6)::before{content:"C"}
.stats-grid .stat-card:nth-child(7)::before{content:"!"}
.stats-grid .stat-card:nth-child(8)::before{content:"T"}
.stats-grid .stat-card:nth-child(9)::before{content:"ON"}

/* === ShipXpress Comercio App V1 segura === */
.content{max-width:1480px;margin:0 auto;width:100%}
.comercio-tabs{overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.comercio-tabs::-webkit-scrollbar{display:none}
.comercio-tabs a{white-space:nowrap}
.comercio-app-shell{display:grid;gap:18px}
.commerce-dashboard-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:18px;align-items:stretch;margin-bottom:18px}
.commerce-dashboard-hero .store-status-shell{margin:0}
.commerce-dashboard-hero .store-status-card{height:100%;min-height:238px;align-items:center}
.commerce-command-card{position:relative;overflow:hidden;border-radius:30px;padding:24px;background:radial-gradient(circle at top right,rgba(57,255,20,.14),transparent 20rem),linear-gradient(145deg,rgba(255,140,0,.16),rgba(255,255,255,.055));border:1px solid rgba(255,140,0,.24);box-shadow:var(--shadow)}
.commerce-command-card::after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-70px;bottom:-90px;background:rgba(255,140,0,.16)}
.command-kicker{display:inline-flex;padding:8px 11px;border-radius:999px;background:rgba(255,140,0,.15);border:1px solid rgba(255,140,0,.24);color:#ffb23f;font-weight:1000;font-size:12px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:12px}
.commerce-command-card h2{font-size:32px;line-height:1.05;margin:0 0 8px;color:#fff;letter-spacing:-.8px}
.commerce-command-card p{color:var(--muted);font-weight:850;line-height:1.45;margin-bottom:18px}
.command-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px;position:relative;z-index:1}
.command-stats div{min-height:84px;padding:12px;border-radius:18px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.11)}
.command-stats small{display:block;color:#aebccd;font-size:11px;font-weight:1000;text-transform:uppercase;margin-bottom:6px}
.command-stats strong{display:block;font-size:24px;line-height:1;color:#fff;word-break:break-word}
.command-actions{display:flex;gap:10px;flex-wrap:wrap;position:relative;z-index:1}
.command-actions .btn{min-height:46px}
.commerce-stats-secondary{grid-template-columns:repeat(5,minmax(0,1fr))}
.commerce-section-card{border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.03));border:1px solid var(--line);box-shadow:0 18px 48px rgba(0,0,0,.20);padding:18px;margin-bottom:18px;overflow:hidden}
.commerce-section-card .table-head{padding:0 0 14px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:14px}
.commerce-order-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(318px,1fr));gap:14px}
.commerce-order-board.compact{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
.commerce-order-card{position:relative;overflow:hidden;border-radius:24px;padding:16px;background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.10);box-shadow:0 12px 32px rgba(0,0,0,.20)}
.commerce-order-card::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#ff8c00}
.commerce-order-card.estado-listo::before{background:#39ff14}.commerce-order-card.estado-preparando::before{background:#ffd166}.commerce-order-card.estado-cancelado::before{background:#ff4d4d}
.order-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;padding-left:4px}
.order-card-top small{display:block;color:#ffb23f;font-weight:1000;text-transform:uppercase;margin-bottom:4px}
.order-card-top h3{font-size:20px;color:#fff;margin:0;line-height:1.15}
.order-phone{display:inline-flex;margin-top:5px;color:#bfdbfe;font-size:13px;font-weight:900;text-decoration:underline}
.order-card-products{min-height:58px;padding:12px;border-radius:17px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);color:#dfeaff;font-weight:800;line-height:1.38;margin-bottom:12px}
.order-card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;color:#d7e5f4;font-size:12px;font-weight:900}
.order-card-meta > span{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.order-progress{display:grid;gap:3px;padding:12px 14px;border-radius:18px;margin-bottom:12px;border:1px solid rgba(255,140,0,.26);background:rgba(255,140,0,.10);color:#ffd7a7}
.order-progress strong{font-size:14px}.order-progress span{font-size:12px;font-weight:850;color:inherit;opacity:.95}
.order-progress.sx-ready,.order-progress.sx-ok{background:rgba(57,255,20,.10);border-color:rgba(57,255,20,.24);color:#c7ffc0}.order-progress.sx-late{background:rgba(255,77,77,.12);border-color:rgba(255,77,77,.26);color:#ffc4c4}
.order-card-money .order-money-card{min-width:0;width:100%;grid-template-columns:repeat(4,1fr);margin-bottom:12px}
.order-card-money .order-money-card div{padding:8px;border-radius:13px}.order-card-money .order-money-card strong{font-size:12px}
.order-card-date{color:var(--muted);font-size:12px;font-weight:900;margin-bottom:12px}
.order-card-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.order-main-action{background:linear-gradient(135deg,#ff8c00,#ffb23f)!important;color:#071019!important;border-color:transparent!important;box-shadow:0 10px 20px rgba(255,140,0,.18)}
.commerce-empty-state{grid-column:1/-1;text-align:center;padding:28px 18px;border-radius:22px;background:rgba(255,255,255,.045);border:1px dashed rgba(255,255,255,.16);color:#d7e5f4}.commerce-empty-state strong{display:block;color:#fff;font-size:18px}.commerce-empty-state span{display:block;color:var(--muted);font-weight:850;margin-top:5px}
.commerce-product-layout{display:grid;grid-template-columns:minmax(300px,430px) 1fr;gap:18px;align-items:start}.commerce-create-card{position:sticky;top:92px}.commerce-create-card h2{font-size:25px;margin-bottom:4px}.commerce-create-card p{color:var(--muted);font-weight:850;line-height:1.45;margin-bottom:14px}.commerce-product-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.commerce-product-tools .comercio-search{min-width:min(300px,100%);flex:1}.commerce-product-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.commerce-product-metrics div{padding:13px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid var(--line)}.commerce-product-metrics small{display:block;color:var(--muted);font-weight:1000;font-size:11px;text-transform:uppercase}.commerce-product-metrics strong{display:block;color:#fff;font-size:24px;line-height:1;margin-top:6px}
.commerce-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.commerce-product-card{overflow:hidden;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.10);box-shadow:0 12px 32px rgba(0,0,0,.18);display:flex;flex-direction:column}.commerce-product-card.is-hidden{opacity:.72}.commerce-product-photo{height:176px;background:#fff;display:grid;place-items:center;position:relative;overflow:hidden}.commerce-product-photo img{width:100%;height:100%;object-fit:contain;padding:12px}.commerce-product-photo span{font-size:46px}.commerce-product-photo .discount-badge{position:absolute;top:12px;right:12px;margin:0}.commerce-product-info{padding:15px;display:grid;gap:10px;flex:1}.commerce-product-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.commerce-product-title h3{font-size:19px;line-height:1.15;margin:0;color:#fff}.commerce-product-info p{color:var(--muted);font-weight:800;line-height:1.35;min-height:36px}.commerce-product-tags{display:flex;gap:7px;flex-wrap:wrap}.commerce-product-tags span{padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--line);color:#d7e5f4;font-size:11px;font-weight:1000}.commerce-product-bottom{margin-top:auto;display:grid;gap:12px}.commerce-product-bottom>strong{font-size:20px;color:#ffb23f}.commerce-product-actions{display:flex;gap:8px;flex-wrap:wrap}
.commerce-page-hero{display:flex;justify-content:space-between;gap:16px;align-items:center;border-radius:28px;padding:20px 22px;margin-bottom:18px;background:radial-gradient(circle at top right,rgba(255,140,0,.18),transparent 24rem),linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.035));border:1px solid var(--line);box-shadow:0 16px 42px rgba(0,0,0,.20)}.commerce-page-hero small{display:inline-flex;color:#ffb23f;font-weight:1000;text-transform:uppercase;margin-bottom:5px}.commerce-page-hero h2{color:#fff;font-size:28px;line-height:1.1;margin:0}.commerce-page-hero p{color:var(--muted);font-weight:850;line-height:1.45;margin-top:6px}.commerce-page-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.commerce-bottom-nav{display:none}
@media(max-width:1100px){.commerce-dashboard-hero,.commerce-product-layout{grid-template-columns:1fr}.commerce-create-card{position:static}.commerce-stats-secondary{grid-template-columns:repeat(2,1fr)}.command-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){body.dashboard-body{padding-bottom:78px}.content{padding:14px!important}.topbar h1{font-size:26px}.topbar p{font-size:13px}.user-chip{display:none}.comercio-toolbar{gap:10px;margin-bottom:14px}.comercio-tabs{flex-wrap:nowrap;margin-inline:-2px;padding:2px 0 8px}.comercio-tabs a{padding:10px 12px;font-size:13px}.commerce-dashboard-hero{gap:14px}.commerce-dashboard-hero .store-status-card{min-height:auto;padding:18px;border-radius:24px}.commerce-command-card{border-radius:24px;padding:18px}.commerce-command-card h2{font-size:26px}.command-stats{grid-template-columns:repeat(2,1fr)}.command-stats div{min-height:74px}.command-actions{display:grid;grid-template-columns:1fr 1fr}.command-actions .btn{width:100%;padding:12px 10px}.commerce-stats-secondary{grid-template-columns:1fr}.commerce-order-board,.commerce-order-board.compact{grid-template-columns:1fr}.commerce-order-card{border-radius:22px;padding:14px}.order-card-money .order-money-card{grid-template-columns:repeat(2,1fr)}.order-card-actions{display:grid;grid-template-columns:1fr 1fr}.order-card-actions .btn-mini{width:100%;min-height:40px}.commerce-product-metrics{grid-template-columns:repeat(2,1fr)}.commerce-product-grid{grid-template-columns:1fr}.commerce-product-photo{height:190px}.commerce-product-tools{display:grid;grid-template-columns:1fr}.commerce-form-grid,.comercio-form-grid{grid-template-columns:1fr}.commerce-page-hero{display:grid;padding:18px;border-radius:24px}.commerce-page-hero h2{font-size:24px}.commerce-page-actions{justify-content:stretch;display:grid;grid-template-columns:1fr 1fr}.commerce-page-actions .btn{width:100%;padding:12px 10px}.commerce-bottom-nav{position:fixed;left:10px;right:10px;bottom:10px;z-index:220;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:8px;border-radius:24px;background:rgba(7,10,15,.90);backdrop-filter:blur(18px);border:1px solid var(--line);box-shadow:0 14px 45px rgba(0,0,0,.45)}.commerce-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;border-radius:18px;color:#cbd5e1;font-size:10px;font-weight:1000}.commerce-bottom-nav a span{font-size:17px}.commerce-bottom-nav a.active{background:linear-gradient(135deg,#ff8c00,#ffb23f);color:#071019}.liquidacion-card{border-radius:24px;padding:18px}.table-card{border-radius:22px}.table-wrap table{min-width:800px}.comercio-modal{padding:10px}.comercio-modal-card{padding:18px;border-radius:24px}.sx-notif{right:14px;top:14px}}
@media(max-width:420px){.command-actions,.commerce-page-actions,.order-card-actions{grid-template-columns:1fr}.commerce-product-metrics{grid-template-columns:1fr}.order-card-money .order-money-card{grid-template-columns:1fr}.commerce-bottom-nav{left:6px;right:6px;bottom:6px;border-radius:20px}.commerce-bottom-nav a{font-size:9px}.commerce-bottom-nav a span{font-size:16px}}


/* === ShipXpress Comercio App V2: flujo, historial, extras y realtime === */
.order-products-list{display:grid;gap:9px}
.order-product-item{padding:10px 11px;border-radius:14px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.order-product-main{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;color:#fff}
.order-product-main strong{font-size:14px;line-height:1.25}.order-product-main em{font-style:normal;color:#ffb23f;font-size:12px;font-weight:1000;white-space:nowrap}
.order-item-extras{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.07)}
.order-item-extras small{display:block;color:#ffb23f;font-weight:1000;font-size:10px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.order-item-extras div{display:flex;gap:6px;flex-wrap:wrap}.order-item-extras span{display:inline-flex;padding:6px 8px;border-radius:999px;background:rgba(255,140,0,.12);border:1px solid rgba(255,140,0,.22);color:#ffd7a7;font-size:11px;font-weight:900}.order-item-extras p{margin:7px 0 0;color:#d7e5f4;font-size:12px;font-weight:850}.order-products-fallback{font-weight:850;color:#dfeaff}
.commerce-history-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.commerce-history-summary div{padding:16px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));border:1px solid var(--line);box-shadow:0 10px 28px rgba(0,0,0,.18)}.commerce-history-summary small{display:block;color:var(--muted);font-size:11px;font-weight:1000;text-transform:uppercase;margin-bottom:7px}.commerce-history-summary strong{font-size:26px;color:#fff;line-height:1;word-break:break-word}.history-tools{align-items:stretch}.commerce-history-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:14px}.commerce-history-card{position:relative;overflow:hidden;border-radius:24px;padding:16px;background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.10);box-shadow:0 12px 32px rgba(0,0,0,.20)}.commerce-history-card::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#39ff14}.commerce-history-card.estado-cancelado::before,.commerce-history-card.estado-rechazado::before,.commerce-history-card.estado-anulado::before{background:#ff4d4d}.history-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;padding-left:4px}.history-card-head small{display:block;color:#ffb23f;font-weight:1000;text-transform:uppercase;margin-bottom:4px}.history-card-head h3{font-size:19px;margin:0;color:#fff}.history-card-products{padding:12px;border-radius:17px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);margin-bottom:12px}.history-money .order-money-card{width:100%;min-width:0;grid-template-columns:repeat(2,1fr);margin-bottom:12px}.history-card-meta{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;color:#aebccd;font-size:12px;font-weight:900;margin-bottom:12px}.history-actions{display:flex;gap:8px;flex-wrap:wrap}.chat-modal-card{width:min(720px,100%)}.chat-msg.mine{background:rgba(255,140,0,.11);border-color:rgba(255,140,0,.22);margin-left:22px}.chat-msg.other{background:rgba(255,255,255,.06);margin-right:22px}.chat-msg p{margin:5px 0;color:#eef5ff;line-height:1.35}.chat-msg small{color:var(--muted);font-weight:800}.sx-notif.show{animation:sxPop .22s ease-out}
@keyframes sxPop{from{transform:translateY(-8px);opacity:.5}to{transform:translateY(0);opacity:1}}
@media(max-width:900px){.commerce-history-summary{grid-template-columns:repeat(2,1fr)}.commerce-history-list{grid-template-columns:1fr}.history-tools{display:grid;grid-template-columns:1fr}.history-money .order-money-card{grid-template-columns:repeat(2,1fr)}}
@media(max-width:420px){.commerce-history-summary{grid-template-columns:1fr}.history-money .order-money-card{grid-template-columns:1fr}.order-product-main{display:grid}.chat-msg.mine,.chat-msg.other{margin-left:0;margin-right:0}}


/* V2.1: detalles de opciones / ingredientes en pedidos */
.order-detail-products .order-products-list,
.info-tile .order-products-list{margin-top:8px}
.order-detail-products .order-product-item,
.info-tile .order-product-item{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:12px;margin-top:8px}
.order-detail-products .order-product-main{display:flex;justify-content:space-between;gap:10px;align-items:center}
.order-item-extras span{white-space:normal;line-height:1.25}
.order-products-fallback{white-space:normal;line-height:1.45}
@media(max-width:760px){
  .order-detail-products .order-product-main,
  .info-tile .order-product-main{display:grid;gap:4px}
  .order-item-extras div{display:grid;grid-template-columns:1fr;gap:6px}
}
