/* UNYXFLUX — Novo Pedido — card oficial de produto */
/* O card não decide a quantidade de colunas da malha externa. */
/* Host de medida intrínseca: o ProductCard responde ao espaço realmente recebido, não à viewport. */
.np-product-card-v2-host{
  min-width:0;
  width:100%;
  max-width:100%;
  container-type:inline-size;
  container-name:np-product-card;
}

.np-product-card-v2{
  min-width:0;
  width:100%;
  max-width:100%;
  padding:10px;
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:11px;
  border:1px solid var(--unyx-d-line,#e8e9f2);
  border-radius:16px;
  background:var(--unyx-d-card,#fff);
  box-shadow:0 7px 20px rgba(19,25,48,.06);
  cursor:pointer;
}

.np-product-card-v2:active{
  border-color:#8a62ff;
  background:var(--unyx-d-card,#fcfbff);
}

.np-product-card-v2__media{
  width:100%;
  min-height:158px;
  border-radius:13px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,var(--unyx-d-card-2,#f4f5fb),var(--unyx-d-card,#fbfbfd));
}

.np-product-card-v2__media img{
  display:block;
  width:100%;
  height:100%;
  padding:6px;
  object-fit:contain;
  box-sizing:border-box;
}

.np-product-card-v2__media img.is-fallback{
  width:52%;
  height:52%;
  padding:0;
  opacity:.48;
}

.np-product-card-v2__content{
  min-width:0;
  display:grid;
  grid-template-rows:auto auto auto;
  align-content:start;
  gap:8px;
}

.np-product-card-v2__header{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:9px;
}

.np-product-card-v2__identity{min-width:0}

.np-product-card-v2__title{
  margin:1px 0 4px;
  color:var(--unyx-d-text,#0b1022);
  font-size:16px;
  font-weight:950;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.np-product-card-v2__meta{
  margin:0;
  color:var(--unyx-d-muted,#6f7485);
  font-size:10.5px;
  font-weight:700;
  line-height:1.25;
  white-space:normal;
}

.np-product-card-v2__stepper{
  width:132px;
  height:40px;
  border:1.5px solid var(--np-accent,#7441ff);
  border-radius:10px;
  display:grid;
  grid-template-columns:40px 52px 40px;
  align-items:center;
  justify-items:stretch;
  overflow:hidden;
  background:var(--unyx-d-card,#fff);
  cursor:default;
}

.np-product-card-v2__stepper button{
  width:40px;
  min-width:40px;
  height:40px;
  padding:0;
  border:0;
  background:var(--unyx-d-card,#fff);
  color:var(--np-accent,var(--unyx-d-tone-purple,#5d24ff));
  display:grid;
  place-items:center;
  font-family:inherit;
  font-size:0;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}

.np-product-card-v2__stepper button img{
  display:block;
  width:18px;
  height:18px;
  max-width:18px;
  max-height:18px;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
  filter:invert(25%) sepia(99%) saturate(6500%) hue-rotate(257deg) brightness(96%) contrast(113%);
}

.np-product-card-v2__stepper span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  text-align:center;
  color:var(--unyx-d-text,#111526);
  font-size:14px;
  font-weight:950;
  line-height:1;
}

.np-product-card-v2__facts{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
}

.np-product-card-v2__price,
.np-product-card-v2__stock{
  min-width:0;
  min-height:58px;
  padding:8px 10px;
  border:0;
  border-radius:10px;
  box-sizing:border-box;
  text-align:left;
}

.np-product-card-v2__price{
  background:linear-gradient(135deg,var(--unyx-d-card-2,#faf9ff),var(--unyx-d-card-2,#f7f5ff));
  cursor:pointer;
}

.np-product-card-v2__price small{
  display:block;
  margin-bottom:2px;
  color:var(--unyx-d-muted,#656b7a);
  font-size:10.5px;
  font-weight:700;
}

.np-product-card-v2__price span{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
}

.np-product-card-v2__price strong{
  min-width:0;
  color:var(--unyx-d-text,#0c1124);
  font-size:18px;
  font-weight:950;
  line-height:1.05;
  white-space:nowrap;
}

.np-product-card-v2__price img{
  flex:0 0 auto;
  width:15px;
  height:15px;
}

.np-product-card-v2__stock{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  background:var(--unyx-d-card-2,#f6fbf6);
}

.np-product-card-v2__stock small{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10.5px;
  font-weight:850;
}

.np-product-card-v2__stock i{
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:50%;
  background:#26943b;
}

.np-product-card-v2__stock strong{
  color:var(--unyx-d-text,#111526);
  font-size:11.5px;
  font-weight:900;
}

.np-product-card-v2__package-detail{
  display:block;
  color:var(--unyx-d-text,#4b5563);
  font-size:10px;
  font-weight:700;
  line-height:1.2;
}

.np-product-card-v2__stock.is-available small{color:var(--unyx-d-tone-green,#23833a)}
.np-product-card-v2__stock.is-empty{background:var(--unyx-d-card-2,#fff7f7)}
.np-product-card-v2__stock.is-empty small{color:var(--unyx-d-tone-red,#b42318)}
.np-product-card-v2__stock.is-empty i{background:#cf342e}
.np-product-card-v2__stock.is-unknown{background:var(--unyx-d-card-2,#f7f7f9)}
.np-product-card-v2__stock.is-unknown small{color:var(--unyx-d-muted,#737887)}
.np-product-card-v2__stock.is-unknown i{background:#979ba8}

.np-product-card-v2__history:empty{display:none}

.np-product-card-v2__history-inner{
  min-width:0;
  min-height:48px;
  padding:6px 8px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  border-radius:10px;
  background:var(--unyx-d-card-2,#faf9ff);
}

.np-product-card-v2__history-copy{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}

.np-product-card-v2__history-copy > img{
  width:17px;
  height:17px;
  flex:0 0 auto;
}

.np-product-card-v2__history-copy span{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}

.np-product-card-v2__history-copy small{
  color:var(--unyx-d-muted,#6d7282);
  font-size:10.5px;
  font-weight:700;
  line-height:1.2;
}

.np-product-card-v2__history-copy small strong{
  color:var(--unyx-d-text,#202538);
  font-weight:950;
}

.np-product-card-v2__history-copy em{
  color:var(--unyx-d-muted,#838898);
  font-size:9.5px;
  font-style:normal;
  font-weight:650;
}

.np-product-card-v2__use-last{
  min-height:38px;
  padding:0 12px;
  border:1.5px solid var(--np-accent,#7441ff);
  border-radius:9px;
  background:var(--unyx-d-card,#fff);
  color:var(--np-accent-ink,var(--unyx-d-tone-purple,#5e25ec));
  font-size:10.5px;
  font-weight:950;
  white-space:nowrap;
  cursor:pointer;
}

.np-product-card-v2__price-applied{
  color:var(--unyx-d-text,#5f6678);
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}

@container np-product-card (max-width:760px){
  .np-product-card-v2{
    grid-template-columns:96px minmax(0,1fr);
    gap:9px;
    padding:9px;
  }
  .np-product-card-v2__media{min-height:148px}
  .np-product-card-v2__title{font-size:14px}
  .np-product-card-v2__meta{font-size:9.5px}
  .np-product-card-v2__stepper{
    width:114px;
    grid-template-columns:36px 42px 36px;
  }
  .np-product-card-v2__stepper button{width:36px;min-width:36px}
  .np-product-card-v2__price,
  .np-product-card-v2__stock{padding:7px 8px}
  .np-product-card-v2__price strong{font-size:16px}
  .np-product-card-v2__history-copy > img{display:none}
  .np-product-card-v2__use-last{padding:0 9px;font-size:9.5px}
}

@container np-product-card (max-width:560px){
  .np-product-card-v2{
    grid-template-columns:82px minmax(0,1fr);
    gap:8px;
    padding:8px;
  }
  .np-product-card-v2__media{min-height:142px}
  .np-product-card-v2__content{gap:7px}
  .np-product-card-v2__header{gap:6px}
  .np-product-card-v2__title{font-size:13px}
  .np-product-card-v2__meta{font-size:9px}
  .np-product-card-v2__stepper{
    width:102px;
    height:38px;
    grid-template-columns:34px 34px 34px;
  }
  .np-product-card-v2__stepper button{
    width:34px;
    min-width:34px;
    height:38px;
  }
  .np-product-card-v2__facts{grid-template-columns:1fr;gap:6px}
  .np-product-card-v2__price,
  .np-product-card-v2__stock{
    min-height:54px;
    padding:6px 7px;
  }
  .np-product-card-v2__price strong{font-size:14px}
  .np-product-card-v2__stock small,
  .np-product-card-v2__stock strong{font-size:9px}
  .np-product-card-v2__history-inner{gap:6px;padding:5px 6px}
  .np-product-card-v2__history-copy small{font-size:9px}
  .np-product-card-v2__history-copy em{font-size:8.5px}
  .np-product-card-v2__use-last{min-height:36px;padding:0 7px;font-size:8.8px}
}

@container np-product-card (max-width:430px){
  .np-product-card-v2__header{grid-template-columns:1fr}
  .np-product-card-v2__stepper{justify-self:start}
  .np-product-card-v2__ranking{gap:5px}
  .np-product-card-v2__ranking-badge{padding:5px 7px;font-size:9px}
}

/* A quantidade de colunas pertence ao layout do Flow. O card não decide a malha externa. */

/* Metadados opcionais do ranking — não altera cards comuns */
.np-product-card-v2__ranking{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-1px 0 0}.np-product-card-v2__ranking-badge{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:5px 9px;border-radius:999px;background:var(--unyx-d-tint-purple,#f4efff);color:var(--unyx-d-tone-purple,#6a32df);font-size:10px;font-weight:850;line-height:1}.np-product-card-v2__ranking-badge.is-favorite{background:var(--unyx-d-tint-purple,#eee5ff);color:var(--unyx-d-tone-purple,#5618e8)}.np-product-card-v2__ranking-badge img{width:14px;height:14px}.np-product-card-v2:has(.np-product-card-v2__ranking-badge.is-favorite){border-color:rgba(108,43,255,.28);box-shadow:0 8px 24px rgba(79,34,255,.10)}



/* CAMPANHA 2026-09-15 — estados visuais do ProductCard no fluxo rápido desktop. */
body[data-unyx-layout="desktop"] .np-product-card-v2.is-keyboard-selected{
  position:relative;
  outline:3px solid rgba(91,32,239,.72);
  outline-offset:2px;
  border-color:#6d3cff;
  box-shadow:0 0 0 5px rgba(91,32,239,.09),0 12px 28px rgba(43,32,93,.12);
}
/* Badge de hint de teclado removido — o outline roxo já sinaliza a seleção. */
/* Edição do card por teclado (Enter no card selecionado): sem painel; o card muda de cor e mostra, no topo,
   quais teclas valem. ←/→ só aparecem quando o produto tem Unidade/Caixa. Quantidade e apresentação ficam no próprio card. */
body[data-unyx-layout="desktop"] .np-product-card-v2.is-keyboard-quantity{
  outline:3px solid #5b20ef;
  outline-offset:2px;
  border-color:#5b20ef;
  background-image:linear-gradient(180deg,rgba(91,32,239,.10),rgba(91,32,239,0) 42%);
  box-shadow:0 0 0 6px rgba(91,32,239,.16),0 14px 30px rgba(43,32,93,.18);
}
body[data-unyx-layout="desktop"] .np-product-card-v2.is-keyboard-quantity::before{
  content:"\2191 \2193  quantidade";
  position:absolute;
  z-index:9;
  top:8px;
  left:8px;
  padding:4px 9px;
  border-radius:999px;
  background:#5b20ef;
  color:#fff;
  font:850 10px/1.2 Inter,system-ui,sans-serif;
  letter-spacing:.01em;
  pointer-events:none;
}
body[data-unyx-layout="desktop"] .np-product-card-v2.is-keyboard-quantity:has([data-np-presentation])::before{
  content:"\2190 \2192  Un/Cx   \2191 \2193  quantidade";
}

/* Contextos compartilhados — uma única geometria Premium.
   Domínios custom fornecem somente facts/ações sem alterar a anatomia do card. */
.np-product-card-v2__custom-facts{
  min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px
}
.np-product-card-v2__custom-facts>span{
  min-width:0;padding:5px 7px;border-radius:8px;background:var(--unyx-d-card-2,#f7f8fc);display:grid;gap:1px
}
.np-product-card-v2__custom-facts small,
.np-product-card-v2__custom-secondary small{font-size:8px;color:var(--unyx-d-muted,#69728b);font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-product-card-v2__custom-facts b{font-size:10px;color:var(--unyx-d-text,#111827);font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-product-card-v2__custom-facts>span.is-positive{background:var(--unyx-d-card-2,#eef8ef)}
.np-product-card-v2__custom-facts>span.is-positive b{color:var(--unyx-d-tone-green,#15803d)}
.np-product-card-v2__custom-facts>span.is-warning{background:var(--unyx-d-tint-amber,#fff7e8)}
.np-product-card-v2__custom-facts>span.is-warning b{color:var(--unyx-d-tone-amber,#b45309)}
.np-product-card-v2__custom-footer{
  min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:1px
}
.np-product-card-v2__custom-secondary{min-width:0;display:grid;gap:1px}
.np-product-card-v2__custom-secondary b{font-size:11.5px;color:var(--unyx-d-text,#07112e);font-weight:950}
.np-product-card-v2__custom-secondary.is-ok b{color:var(--unyx-d-tone-green,#15803d)}
.np-product-card-v2__custom-secondary.is-warning b{color:var(--unyx-d-tone-amber,#b45309)}
.np-product-card-v2__quick-action{
  min-height:30px;padding:0 10px;border:1.5px solid var(--np-accent,#7441ff);border-radius:8px;background:var(--unyx-d-card,#fff);color:var(--np-accent-ink,var(--unyx-d-tone-purple,#5e25ec));font-size:9px;font-weight:950;white-space:nowrap;cursor:pointer
}
@container np-product-card (max-width:560px){
  .np-product-card-v2__custom-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .np-product-card-v2__custom-facts>span{padding:4px 6px}
  .np-product-card-v2__custom-footer{gap:5px}
  .np-product-card-v2__quick-action{min-height:28px;padding:0 8px;font-size:8.5px}
}


.np-product-card-v2__fact-label-compact{display:none}

/* CAMPANHA 2026-09-28 — ProductCard Premium oficial — direção visual B.
   Autoridade geométrica única para Pedido e contextos custom (ex.: Compras).
   Adapters fornecem somente conteúdo semântico; não escolhem outra anatomia. */
.np-product-card-v2{
  grid-template-columns:168px minmax(0,1fr);
  gap:14px;
  padding:12px;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(19,25,48,.075);
}

.np-product-card-v2 .np-product-card-v2__media{
  min-height:0;
  aspect-ratio:1 / 1;
  align-self:start;
  border-radius:15px;
  background:linear-gradient(145deg,var(--unyx-d-card-2,#f4f5fb),var(--unyx-d-card,#fbfbfd));
}

.np-product-card-v2 .np-product-card-v2__media img{
  padding:8px;
}

.np-product-card-v2 .np-product-card-v2__content{
  gap:9px;
}

.np-product-card-v2 .np-product-card-v2__header{
  align-items:center;
  gap:12px;
}

.np-product-card-v2 .np-product-card-v2__title{
  margin:0 0 4px;
  font-size:17px;
  line-height:1.12;
}

.np-product-card-v2 .np-product-card-v2__stepper{
  width:144px;
  height:44px;
  grid-template-columns:42px 58px 42px;
  gap:1px;
  padding:3px;
  border:1px solid var(--unyx-d-line,#ddd4ff);
  border-radius:999px;
  overflow:visible;
  background:var(--unyx-d-card,#fff);
  box-shadow:0 4px 12px rgba(93,36,255,.07);
}

.np-product-card-v2 .np-product-card-v2__stepper button{
  width:36px;
  min-width:36px;
  height:36px;
  justify-self:center;
  border-radius:50%;
  background:var(--np-accent-soft,var(--unyx-d-tint-purple,#f1edff));
  transition:transform .14s ease,background .14s ease,box-shadow .14s ease;
}

.np-product-card-v2 .np-product-card-v2__stepper button:last-child{
  background:var(--np-accent,#6527f5);
  box-shadow:0 5px 12px rgba(101,39,245,.24);
}

.np-product-card-v2 .np-product-card-v2__stepper button:last-child img{
  filter:brightness(0) invert(1);
}

.np-product-card-v2 .np-product-card-v2__stepper button:active{
  transform:scale(.94);
}

.np-product-card-v2 .np-product-card-v2__facts{
  gap:10px;
}

.np-product-card-v2 .np-product-card-v2__price,
.np-product-card-v2 .np-product-card-v2__stock{
  min-height:62px;
  padding:9px 11px;
  border-radius:12px;
}

.np-product-card-v2 .np-product-card-v2__price{
  border:1px solid var(--unyx-d-line,#eee9ff);
  background:linear-gradient(135deg,var(--unyx-d-card-2,#fbfaff),var(--unyx-d-tint-purple,#f5f1ff));
}

.np-product-card-v2 .np-product-card-v2__price strong{
  color:var(--np-accent-ink,var(--unyx-d-tone-purple,#5d24df));
  font-size:19px;
}

.np-product-card-v2 .np-product-card-v2__stock{
  border:1px solid var(--unyx-d-line,#e5f4e7);
  background:linear-gradient(135deg,var(--unyx-d-card-2,#f7fcf8),var(--unyx-d-card-2,#eef9f0));
}

.np-product-card-v2 .np-product-card-v2__stock.is-empty{
  border-color:var(--unyx-d-line,#f8dddd);
  background:linear-gradient(135deg,var(--unyx-d-card,#fffafa),var(--unyx-d-tint-red,#fff3f3));
}

.np-product-card-v2 .np-product-card-v2__stock.is-unknown{
  border-color:var(--unyx-d-line,#ebebef);
  background:linear-gradient(135deg,var(--unyx-d-card-2,#fafafd),var(--unyx-d-card-2,#f5f5f8));
}

.np-product-card-v2 .np-product-card-v2__history-inner{
  min-height:46px;
  padding:7px 9px;
  border:1px solid var(--unyx-d-line,#f0ecfb);
  border-radius:12px;
  background:linear-gradient(135deg,var(--unyx-d-card-2,#fbfaff),var(--unyx-d-card-2,#f8f6ff));
}

@container np-product-card (max-width:760px){
  .np-product-card-v2{
    grid-template-columns:142px minmax(0,1fr);
    gap:11px;
    padding:10px;
  }
  .np-product-card-v2 .np-product-card-v2__title{font-size:15px}
  .np-product-card-v2 .np-product-card-v2__stepper{
    width:126px;
    height:40px;
    grid-template-columns:38px 48px 38px;
  }
  .np-product-card-v2 .np-product-card-v2__stepper button{
    width:32px;
    min-width:32px;
    height:32px;
  }
  .np-product-card-v2 .np-product-card-v2__price,
  .np-product-card-v2 .np-product-card-v2__stock{
    min-height:58px;
    padding:8px 9px;
  }
  .np-product-card-v2 .np-product-card-v2__price strong{font-size:17px}
}

@container np-product-card (max-width:560px){
  .np-product-card-v2{
    grid-template-columns:118px minmax(0,1fr);
    gap:9px;
    padding:8px;
  }
  .np-product-card-v2 .np-product-card-v2__content{gap:6px}
  .np-product-card-v2 .np-product-card-v2__header{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:6px;
  }
  .np-product-card-v2 .np-product-card-v2__title{
    font-size:13px;
    margin-bottom:2px;
  }
  .np-product-card-v2 .np-product-card-v2__meta{font-size:8.8px}
  .np-product-card-v2 .np-product-card-v2__stepper{
    width:108px;
    height:36px;
    grid-template-columns:34px 38px 34px;
    padding:2px;
  }
  .np-product-card-v2 .np-product-card-v2__stepper button{
    width:30px;
    min-width:30px;
    height:30px;
  }
  .np-product-card-v2 .np-product-card-v2__facts{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:6px;
  }
  .np-product-card-v2 .np-product-card-v2__price,
  .np-product-card-v2 .np-product-card-v2__stock{
    min-height:52px;
    padding:6px 7px;
  }
  .np-product-card-v2 .np-product-card-v2__price strong{font-size:14px}
  .np-product-card-v2 .np-product-card-v2__stock small,
  .np-product-card-v2 .np-product-card-v2__stock strong{font-size:8.8px}
  .np-product-card-v2 .np-product-card-v2__package-detail{font-size:8px}
  .np-product-card-v2 .np-product-card-v2__history-inner{min-height:42px}
}

@container np-product-card (max-width:430px){
  .np-product-card-v2{
    grid-template-columns:96px minmax(0,1fr);
    gap:8px;
  }
  .np-product-card-v2 .np-product-card-v2__header{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .np-product-card-v2 .np-product-card-v2__stepper{
    width:96px;
    height:34px;
    grid-template-columns:30px 34px 30px;
  }
  .np-product-card-v2 .np-product-card-v2__stepper button{
    width:28px;
    min-width:28px;
    height:28px;
  }
  .np-product-card-v2 .np-product-card-v2__stepper button img{width:14px;height:14px}
}

/* ── Valor unitário no card (Prancha 1 · Variação C) ───────────────────────── */
/* Faixa "Caixa c/ N un. | R$ X/un." (view: renderUnitFlow).                    */
/* Slot vazio some (sem gap) quando não há embalagem/preço. Mesma faixa em      */
/* qualquer largura (sem conta no meio).                                        */
.np-product-card-v2__unit-slot:empty{display:none}
.np-product-card-v2__unit-flow{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border:1px dashed #c9b8ff;
  border-radius:11px;
  background:var(--unyx-d-tint-purple,#f6f3ff);
  color:var(--unyx-d-text,#4a4f66);
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
}
.np-product-card-v2__unit-pack{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
}
.np-product-card-v2__unit-pack svg{flex:0 0 auto;width:16px;height:16px;color:var(--np-accent,var(--unyx-d-tone-purple,#5d24ff))}
.np-product-card-v2__unit-pack span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.np-product-card-v2__unit-result{
  flex:0 0 auto;
  margin-left:auto;
  display:flex;
  align-items:baseline;
  gap:3px;
  padding:4px 9px;
  border-radius:8px;
  background:var(--np-accent,#5d24ff);
  color:#fff;
}
.np-product-card-v2__unit-result b{font-size:12.5px;font-weight:950}
.np-product-card-v2__unit-result small{font-size:9.5px;font-weight:700;opacity:.85}

/* ── Marcação de produto já adicionado ao carrinho ───────────────────────────── */
/* Produtos com quantidade > 0 recebem esta classe via render() e permanecem na   */
/* posição original da lista (sem reordenação e sem separador).                   */
/* [Campanha Modelo C — Rodada 1] A barra da esquerda vem DEPOIS de border-color  */
/* (antes o border-color a apagava). */
.np-product-card-v2--in-cart{
  border:1px solid var(--unyx-d-line,#86efac);
  border-left:5px solid #16a34a;
  background:var(--unyx-d-tint-green,#ecfdf3);
  box-shadow:0 4px 14px rgba(22,163,74,.14);
  transition:border-color .2s,background .2s,box-shadow .2s;
}
.np-product-card-v2--in-cart .np-product-card-v2__stepper{
  border-color:var(--unyx-d-line,#86efac);
}
.np-product-card-v2--in-cart .np-product-card-v2__stepper span{
  color:var(--unyx-d-tone-green,#166534);
  font-weight:950;
  font-size:17px;
}
/* Selecionado por teclado: borda roxa de seleção, mas mantém o tom verde. */
/* A marcação é verde-menta em qualquer aparelho: a regra de modo escuro foi removida porque
   escurecia o card (cinza) sobre as telas claras do Novo Pedido e da loja. */
.np-product-card-v2--in-cart.is-keyboard-selected,
.np-product-card-v2--in-cart[data-selected]{
  background:var(--unyx-d-tint-green,#ecfdf3);
  border-color:rgba(91,32,239,.55);
  border-left-color:#16a34a;
}

/* Desktop: a seleção por teclado usa contorno roxo (regra de 2026-09-15); a barra
   verde da esquerda continua indicando "já no pedido". */
body[data-unyx-layout="desktop"] .np-product-card-v2--in-cart.is-keyboard-selected{
  border-left-color:#16a34a;
}

/* [Campanha Modelo C — Rodada 2] Selo carrinho + quantidade no canto da foto. */
.np-product-card-v2__media{ position:relative; }
.np-product-card-v2__badge{
  position:absolute;
  top:6px;
  right:6px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-width:30px;
  height:24px;
  padding:0 8px 0 6px;
  box-sizing:border-box;
  border-radius:999px;
  background:#15803d;
  color:#fff;
  box-shadow:0 2px 6px rgba(21,128,61,.35);
  pointer-events:none;
  user-select:none;
  animation:npBadgeIn .16s ease-out;
}
.np-product-card-v2__badge svg{ width:14px; height:14px; flex:none; }
.np-product-card-v2__badge b{
  font-size:13px;
  font-weight:950;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
@keyframes npBadgeIn{ from{transform:scale(.7);opacity:0} to{transform:scale(1);opacity:1} }
@media(prefers-reduced-motion:reduce){ .np-product-card-v2__badge{ animation:none; } }

/* ═══ Campanha — Stepper rápido (−/+) ═══════════════════════════════════════════
   Rodada 1 · alvo de toque: área clicável invisível de 44px de altura e ~44px de
   largura em telas de toque, sem alterar o círculo visual nem o layout do card.
   − e + nunca se sobrepõem: o número central (span) fica entre as duas áreas.
   Rodada 2 · sinal por toque: número maior + pulso curto a cada toque aceito
   (classe is-bump, aplicada por novo_pedido_flow_v1.js) e − esmaecido em 0. */
.np-product-card-v2 .np-product-card-v2__stepper button{
  position:relative;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  -webkit-user-select:none;
}
.np-product-card-v2 .np-product-card-v2__stepper > span{
  font-size:16px;
  font-variant-numeric:tabular-nums;
  user-select:none;
  -webkit-user-select:none;
}
@media (pointer:coarse){
  .np-product-card-v2 .np-product-card-v2__stepper button::before{
    content:"";
    position:absolute;
    top:-8px;
    bottom:-8px;
  }
  .np-product-card-v2 .np-product-card-v2__stepper button[data-flow-product-minus]::before{ left:-9px; right:-7px; }
  .np-product-card-v2 .np-product-card-v2__stepper button[data-flow-product-plus]::before{ left:-7px; right:-9px; }
}
@keyframes npQtyBump{
  0%{ transform:scale(1); }
  45%{ transform:scale(1.3); }
  100%{ transform:scale(1); }
}
.np-product-card-v2 .np-product-card-v2__stepper > span.is-bump{
  animation:npQtyBump .12s ease-out;
}
@media (prefers-reduced-motion:reduce){
  .np-product-card-v2 .np-product-card-v2__stepper > span.is-bump{ animation:none; }
}
.np-product-card-v2:not(.np-product-card-v2--in-cart) .np-product-card-v2__stepper button[data-flow-product-minus]{
  opacity:.38;
  cursor:default;
}

/* [Digitar quantidade inline] O número do stepper é um alvo de toque: vira um campo numérico no
   próprio lugar. Área vertical de 44px no toque, sem invadir o − e o +. */
.np-product-card-v2 .np-product-card-v2__stepper > span[data-flow-product-qty-edit]{
  position:relative;
  cursor:pointer;
  border-radius:9px;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  outline:none;
}
.np-product-card-v2 .np-product-card-v2__stepper > span[data-flow-product-qty-edit]:hover{ background:rgba(109,60,255,.08); }
.np-product-card-v2 .np-product-card-v2__stepper > span[data-flow-product-qty-edit]:active{ background:rgba(109,60,255,.14); }
.np-product-card-v2 .np-product-card-v2__stepper > span[data-flow-product-qty-edit]:focus-visible{ box-shadow:0 0 0 2px #8a62ff; }
.np-product-card-v2 .np-product-card-v2__stepper > span.is-editing::before{ display:none; }
/* Campo de digitação: fonte ≥16px evita o zoom automático do iOS ao focar. */
.np-product-card-v2__qty-input{
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:9px;
  outline:none;
  background:var(--unyx-d-card,#fff);
  box-shadow:0 0 0 2px #8a62ff;
  color:var(--unyx-d-text,#111526);
  font-family:inherit;
  font-size:16px;
  font-weight:950;
  line-height:1;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
@media (pointer:coarse){
  .np-product-card-v2 .np-product-card-v2__stepper > span[data-flow-product-qty-edit]::before{
    content:"";
    position:absolute;
    top:-8px;
    bottom:-8px;
    left:5px;
    right:5px;
  }
}

/* [Campanha Bloqueio de venda sem estoque] + desabilitado quando o produto não
   pode ser adicionado (estoque conhecido <= 0). */
.np-product-card-v2 .np-product-card-v2__stepper button[data-flow-product-plus][disabled]{
  opacity:.4;
  filter:grayscale(1);
  cursor:not-allowed;
  box-shadow:none;
}


/* ═══ Campanha Comércio/Novo Pedido 2026-10 — card vertical ÚNICO (mobile e desktop) ═══
   Referência visual: foto no topo, nome, preço com a embalagem ao lado, "R$ x/un.", estoque discreto
   e barra de quantidade. Vale para o card padrão (Pedido/Loja) em qualquer largura — o card horizontal antigo
   deixou de existir nesses contextos; quem decide o nº de colunas é a malha do Flow.
   O modo custom (Estoque/Compras) não é alterado. */
.np-product-card-v2__price-pack{
  min-width:0;
  color:var(--unyx-d-muted,#6b7285);
  font-size:10.5px;
  font-style:normal;
  font-weight:700;
  white-space:nowrap;
}
.np-product-card-v2:not(.np-product-card-v2--custom){
  grid-template-columns:minmax(0,1fr);
  gap:8px;
  padding:8px;
  border-radius:16px;
  align-content:start;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__media{
  width:100%;
  aspect-ratio:1 / 1;
  min-height:0;
  border-radius:12px;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__content{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__header{ display:contents; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__identity{ order:1; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__title{
  margin:0;
  font-size:13px;
  line-height:1.2;
  min-height:2.4em;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__meta{ display:none; }
.np-product-card-v2__code{ display:none; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__code{
  display:block;
  margin:3px 0 0;
  color:var(--unyx-d-muted,#6b7285);
  font-size:11px;
  font-weight:700;
  line-height:1.2;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__ranking{ order:2; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__facts{
  order:3;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price{
  min-height:0;
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price small{ display:none; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price span{
  flex-wrap:wrap;
  align-items:baseline;
  gap:2px 5px;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price strong{
  color:var(--np-accent-ink,var(--unyx-d-tone-purple,#5d24df));
  font-size:16px;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price img{ display:none; }

.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__stock{
  min-height:0;
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:2px 6px;
}
/* Estoque discreto: com estoque disponível só "Estoque: N cx" (com um ponto verde); sem estoque/desconhecido mantém o aviso. */
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__stock.is-available small{ display:none; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__stock.is-available strong::before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:5px;
  border-radius:50%;
  background:#26943b;
  vertical-align:middle;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__stock small{ font-size:10.5px; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__stock strong{ color:var(--unyx-d-text,#5b6275); font-size:10.5px; font-weight:750; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__package-detail{ display:none; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__unit-slot{ order:4; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__unit-flow{
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  color:var(--unyx-d-text,#5b6275);
  font-size:11px;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__unit-pack{ display:none; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__unit-result{
  margin:0;
  padding:0;
  background:none;
  color:var(--unyx-d-text,#3f4659);
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__unit-result b{ font-size:11.5px; font-weight:850; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__unit-result small{ font-size:0; opacity:1; }
/* "/un." vira "por unidade" por extenso (o texto acessível do grupo já descreve a conta). */
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__unit-result small::after{
  content:" por unidade";
  font-size:11px;
  font-weight:700;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__history{ order:5; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__history-inner{
  grid-template-columns:minmax(0,1fr);
  gap:4px;
  padding:6px 7px;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__history-copy small,
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__history-copy em{ font-size:10px; }
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__use-last{ min-height:34px; width:100%; font-size:10.5px; }
/* Barra de quantidade na largura inteira, no rodapé do card. */
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__stepper{
  order:9;
  width:100%;
  height:40px;
  margin-top:2px;
  padding:3px;
  grid-template-columns:36px minmax(0,1fr) 36px;
  justify-self:stretch;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__stepper button{
  width:34px;
  min-width:34px;
  height:34px;
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__stepper button img{ width:16px; height:16px; max-width:16px; max-height:16px; }
/* Card no carrinho: a barra verde do topo é desenhada por sombra interna, sem aumentar a borda, para o card NÃO mudar
   de altura nem empurrar foto/conteúdo ao adicionar o primeiro item (antes: border-top 1px → 4px = salto de 3px). */
.np-product-card-v2--in-cart:not(.np-product-card-v2--custom){
  border-left-width:1px;
  border-top-color:#16a34a;
  box-shadow:inset 0 3px 0 #16a34a,0 4px 14px rgba(22,163,74,.14);
}
/* Seleção/edição por teclado (desktop) substituem o box-shadow: mantêm a barra verde junto do destaque roxo. */
body[data-unyx-layout="desktop"] .np-product-card-v2--in-cart:not(.np-product-card-v2--custom).is-keyboard-selected{
  box-shadow:inset 0 3px 0 #16a34a,0 0 0 5px rgba(91,32,239,.09),0 12px 28px rgba(43,32,93,.12);
}
body[data-unyx-layout="desktop"] .np-product-card-v2--in-cart:not(.np-product-card-v2--custom).is-keyboard-quantity{
  box-shadow:inset 0 3px 0 #16a34a,0 0 0 6px rgba(91,32,239,.16),0 14px 30px rgba(43,32,93,.18);
}
/* [Opt-in — Operações/Vale] Seletor Unidade | Caixa, "Retirada real" e preço somente leitura (data.choice / data.priceReadonly). */
.np-product-card-v2__choice{display:flex;border:1px solid var(--unyx-d-line,#e4e0f3);border-radius:12px;overflow:hidden;background:var(--unyx-d-card,#fff)}
.np-product-card-v2__choice button{flex:1;border:0;background:transparent;color:var(--unyx-d-muted,#6b6785);font-weight:800;font-size:11.5px;padding:9px 6px;cursor:pointer;white-space:nowrap}
.np-product-card-v2__choice button+button{border-left:1px solid var(--unyx-d-line,#e4e0f3)}
.np-product-card-v2__choice button.is-active{background:#5f36e8;color:#fff}
.np-product-card-v2__choice button:disabled{opacity:.45;cursor:not-allowed}
.np-product-card-v2__real{margin:6px 0 0;font-size:11px;color:var(--unyx-d-muted,#6b6785)}
.np-product-card-v2__real b{color:var(--unyx-d-text,#08112f)}
.np-product-card-v2__price.is-readonly{cursor:default}

/* [Novo Pedido V4 — Variação 2] Preço da Caixa + preço proporcional por unidade na mesma linha, separados por um divisor
   vertical discreto. Sem selo, borda, fundo ou ícone no valor proporcional; é só informativo. */
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price.has-unit > span{
  flex-wrap:nowrap;
  align-items:center;
  gap:0 8px;
}
.np-product-card-v2__price-sep{
  flex:0 0 auto;
  align-self:center;
  width:1px;
  height:16px;
  background:var(--unyx-d-line,#d9dbe6);
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price .np-product-card-v2__price-unit{
  display:inline-flex;
  flex-wrap:nowrap;
  align-items:baseline;
  gap:1px;
  min-width:0;
  white-space:nowrap;
  color:var(--unyx-d-text,#141827);
}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price .np-product-card-v2__price-unit b{font-size:12.5px;font-weight:850}
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price .np-product-card-v2__price-unit em{font-size:11px;font-style:normal;font-weight:600;color:var(--unyx-d-muted,#6b7285)}
/* Nota do preço (priceNote, ex.: "Vendido 2 caixas" no desconto): ocupa a própria linha abaixo do preço, sem colidir com o valor por unidade. */
.np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price > span:has(> .np-product-card-v2__price-note){ flex-wrap:wrap; }
.np-product-card-v2__price-note{ flex:0 0 100%; margin-top:2px; color:var(--unyx-d-tone-green,#23833a); font-size:11px; font-weight:800; }
@media (max-width:360px){
  .np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price .np-product-card-v2__price-unit b{font-size:11.5px}
  .np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__price .np-product-card-v2__price-unit em{font-size:10px}
}

/* [Campanha 5] Dica da tecla F4 no botão "Usar último preço" do card selecionado (desktop). */
body[data-unyx-layout="desktop"] .np-product-card-v2.is-keyboard-selected .np-product-card-v2__use-last::after,
body[data-unyx-layout="desktop"] .np-product-card-v2.is-keyboard-quantity .np-product-card-v2__use-last::after{
  content:"F4";
  display:inline-block;
  margin-left:8px;
  padding:1px 6px;
  border:1px solid currentColor;
  border-bottom-width:2px;
  border-radius:5px;
  font-size:10px;
  font-weight:950;
  line-height:1.3;
  opacity:.85;
}

/* ═══ Campanha Foto de Produto no Modo Escuro ═══════════════════════════════════
   Decisão do Diretor: somente a moldura arredondada. Sem escurecimento, sem degradê e sem
   remoção de fundo: a foto aparece como é, só com os cantos arredondados. Só CSS; a foto
   original não é alterada. Só o card padrão (Pedido/Loja) no tema escuro; modo claro e modo
   custom (Estoque/Compras) não mudam. */
html.unyx-dark-theme .np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__media{
  border-radius:14px;
}
html.unyx-dark-theme .np-product-card-v2:not(.np-product-card-v2--custom) .np-product-card-v2__media > img[data-np-product-image]:not(.is-fallback){
  padding:0;
  border-radius:inherit;
}

/* ═══ Campanha Legibilidade no Modo Escuro — botão menos (−) do seletor de quantidade ═══
   Hoje: disco roxo-translúcido com ícone roxo escuro (1,9:1). Agora: aro vivo + ícone branco. */
html.unyx-dark-theme .np-product-card-v2 .np-product-card-v2__stepper button[data-flow-product-minus]{
  background:rgba(141,112,255,.22);
  box-shadow:0 0 0 1.5px #8d70ff inset;
}
html.unyx-dark-theme .np-product-card-v2 .np-product-card-v2__stepper button[data-flow-product-minus] img{
  filter:brightness(0) invert(1);
}

/* ===== Card do Estoque (modo stock) — Prancha 2 / Variação B =====
   Vitrine vertical; estados: ok | min (âmbar) | crit | zero | neg (vermelho). Só apresentação. */
.np-stock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(228px,1fr));gap:14px}
.np-stock-card{--sc-line:var(--unyx-d-line,#e8eaf3);--sc-soft:var(--unyx-d-card-2,#f4f5fb);--sc-tone:var(--unyx-d-text,#1c2138);
  position:relative;display:flex;flex-direction:column;min-width:0;padding:8px;border-radius:18px;
  border:1.5px solid var(--sc-line);background:var(--unyx-d-card,#fff);box-shadow:0 3px 12px rgba(28,33,58,.05);
  color:var(--unyx-d-text,#1c2138);cursor:pointer;overflow:hidden}
.np-stock-card.is-min{--sc-line:#f0b44a;--sc-soft:#fff3d9;--sc-tone:#a86a00}
.np-stock-card.is-crit,.np-stock-card.is-zero{--sc-line:#ef8a98;--sc-soft:#fdecef;--sc-tone:#d9162f}
.np-stock-card.is-neg{--sc-line:#d9162f;--sc-soft:#fdecef;--sc-tone:#b50f25;box-shadow:0 0 0 3px rgba(217,22,47,.10),0 3px 12px rgba(28,33,58,.05)}
.np-stock-card.is-selected{outline:2px solid #8a62ff;outline-offset:1px}
.np-stock-card.is-batch-selected{outline:2px solid var(--unyx-d-tone-purple,#5000e0);outline-offset:1px}
.np-stock-card__media{position:relative;aspect-ratio:1/1;border-radius:13px;overflow:hidden;background:#fff}
.np-stock-card__photo{position:absolute;inset:0;display:grid;place-items:center}
.np-stock-card .np-stock-card__photo>*{position:relative;width:100%;height:100%;border:0;border-radius:0;background:transparent;display:block;box-shadow:none}
.np-stock-card__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.np-stock-card.is-zero .np-stock-card__photo img{filter:grayscale(.85) opacity(.55)}
.np-stock-card__pill,.np-stock-card__check,.np-stock-card__more--photo,.np-stock-card__val{position:absolute;z-index:2}
.np-stock-card__pill{left:7px;top:7px;display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:800;color:#fff;background:var(--sc-tone);box-shadow:0 2px 6px rgba(28,33,58,.14)}
.np-stock-card__pill:before{content:"";width:6px;height:6px;border-radius:50%;background:#fff}
.np-stock-card.is-ok .np-stock-card__pill{color:#0a8f55;background:var(--unyx-d-card,#fff)}
.np-stock-card.is-ok .np-stock-card__pill:before{background:#0a8f55}
.np-stock-card__val{left:7px;bottom:7px;padding:3px 7px;border-radius:8px;font-size:9.5px;font-weight:800;box-shadow:0 2px 6px rgba(28,33,58,.12)}
.np-stock-card__val.is-warn{color:#a86a00;background:#fff3d9}.np-stock-card__val.is-danger{color:#fff;background:#d9162f}
.np-stock-card__check{right:7px;top:7px;display:none;width:20px;height:20px;border-radius:6px;border:2px solid #cfd3e3;background:var(--unyx-d-card,#fff)}
.np-stock-card__check.is-on{background:var(--unyx-d-tone-purple,#5000e0);border-color:var(--unyx-d-tone-purple,#5000e0)}
.np-stock-card__check.is-on:after{content:"";position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.np-stock-card__more{width:28px;height:28px;padding:0;border:0;border-radius:9px;background:var(--unyx-d-card,#fff);color:var(--unyx-d-muted,#6b7390);display:grid;place-items:center;cursor:pointer}
.np-stock-card__more svg{width:16px;height:16px;fill:currentColor}
.np-stock-card__more--photo{right:6px;top:6px;box-shadow:0 2px 6px rgba(28,33,58,.14)}
.np-stock-card__more--row{display:none;margin-left:auto;width:24px;height:22px;border-radius:7px;background:var(--unyx-d-card-2,#f4f5fb)}
.np-stock-card__body{display:flex;flex-direction:column;gap:3px;flex:1;padding:9px 4px 2px;min-width:0}
.np-stock-card__name{margin:0;min-height:31px;font-size:13px;font-weight:800;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.np-stock-card__meta{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--unyx-d-muted,#6b7390);min-width:0}
.np-stock-card__meta em{font-style:normal;font-weight:700;padding:1px 6px;border-radius:6px;background:var(--unyx-d-card-2,#f4f5fb);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-stock-card__stock{margin-top:5px;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.np-stock-card__stock b{font-size:17px;font-weight:900;letter-spacing:-.02em;color:var(--sc-tone)}
.np-stock-card.is-ok .np-stock-card__stock b{color:var(--unyx-d-text,#1c2138)}
.np-stock-card__stock small{font-size:9.5px;color:var(--unyx-d-muted,#6b7390)}
.np-stock-card__level{display:flex;align-items:center;gap:7px;margin-top:2px}
.np-stock-card__track{position:relative;flex:1;height:7px;border-radius:9px;background:var(--unyx-d-line,#eceef6)}
.np-stock-card__track i{position:absolute;left:0;top:0;bottom:0;border-radius:9px;background:#0a8f55}
.np-stock-card.is-min .np-stock-card__track i{background:#e9a23b}
.np-stock-card.is-crit .np-stock-card__track i,.np-stock-card.is-zero .np-stock-card__track i,.np-stock-card.is-neg .np-stock-card__track i{background:#d9162f}
.np-stock-card__track u{position:absolute;left:50%;top:-3px;bottom:-3px;width:2px;border-radius:2px;background:var(--unyx-d-text,#1c2138);text-decoration:none}
.np-stock-card__level em{font-style:normal;font-size:9.5px;font-weight:700;white-space:nowrap;color:var(--unyx-d-muted,#6b7390)}
.np-stock-card__hint{margin-top:3px;padding:4px 7px;border-radius:8px;font-size:10px;font-weight:800;color:var(--sc-tone);background:var(--sc-soft)}
.np-stock-card__last{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:10px;color:var(--unyx-d-muted,#6b7390);min-width:0}
.np-stock-card__last svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.np-stock-card__last.is-in svg{color:#0a8f55}.np-stock-card__last.is-out svg{color:#d9162f}
.np-stock-card__last b{font-weight:800;color:var(--unyx-d-text,#1c2138);white-space:nowrap}
.np-stock-card__last span{white-space:nowrap}
.np-stock-card__price{display:flex;align-items:baseline;gap:5px;margin-top:5px;padding-top:6px;border-top:1px dashed var(--unyx-d-line,#e8eaf3)}
.np-stock-card__price strong{font-size:13px;font-weight:900;color:var(--unyx-d-tone-purple,#5000e0)}
.np-stock-card__price small,.np-stock-card__cost{font-size:9.5px;color:var(--unyx-d-muted,#6b7390)}
.np-stock-card__cost b{font-weight:800;color:#0a8f55}
.np-stock-card__actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
.np-stock-card__btn{height:36px;padding:0 6px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:12px;border:1px solid;font:inherit;font-size:11.5px;font-weight:800;cursor:pointer}
.np-stock-card__btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.np-stock-card__btn.is-in{color:#0a8f55;background:#e7f7ef;border-color:#bfe8d3}
.np-stock-card__btn.is-out{color:#d9162f;background:#fdecef;border-color:#f6c6ce}
.np-stock-card:not(.is-ok) .np-stock-card__btn.is-in{color:#fff;background:#0a8f55;border-color:#0a8f55}
.np-stock-card__btn:disabled{color:#aab0c4;background:#f3f4f8;border-color:#eceef4;cursor:not-allowed}
@media (min-width:761px){
  .np-stock-card__check{display:block}
  .np-stock-card__more--photo{display:none}
  .np-stock-card__more--row{display:grid}
  .np-stock-card__media{aspect-ratio:4/3}
}
@media (max-width:760px){
  .np-stock-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

/* Estoque (stock) — modo escuro: a foto do produto tem fundo branco; a moldura da foto fica branca p/ encaixar sem faixas escuras */
html.unyx-dark-theme .np-stock-card .np-stock-card__media,html.unyx-dark-theme .np-stock-card .np-stock-card__photo>*,html.unyx-dark-theme .np-stock-card .np-stock-card__photo img{background:#fff;border:0;border-radius:0;box-shadow:none}
html.unyx-dark-theme .np-stock-card .np-stock-card__media{border-radius:13px}
html.unyx-dark-theme .np-stock-card.is-ok .np-stock-card__pill{color:#067a47;background:#e3f6ec}
html.unyx-dark-theme .np-stock-card.is-ok .np-stock-card__pill:before{background:#067a47}
