/* ── CARRINHO - Estilos específicos da página ──────────────── */

.np-cart-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* Tabela */
.np-cart-table {
  width: 100%;
  border-collapse: collapse;
}
.np-cart-table th {
  font-family: var(--np-font-body);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--np-grey);
  padding: 10px 16px;
  border-bottom: 2px solid var(--np-light-grey);
  font-weight: 600;
}
.np-cart-table td {
  padding: 16px;
  border-bottom: 1px solid var(--np-light-grey);
  vertical-align: middle;
}

.np-cart-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--np-radius-md);
  border: 1px solid var(--np-light-grey);
}
.np-cart-nome {
  font-family: var(--np-font-heading);
  font-weight: 600;
  font-size: var(--np-fs-base);
  color: var(--np-primary);
  margin-bottom: 4px;
}

/* Controle de quantidade */
.np-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--np-light-grey);
  border-radius: var(--np-radius-md);
  overflow: hidden;
}
.np-qty__btn {
  background: var(--np-off-white);
  border: none;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--np-primary);
  transition: var(--np-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-qty__btn:hover { background: var(--np-secondary); color: #fff; }
.np-qty__input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--np-light-grey);
  border-right: 1px solid var(--np-light-grey);
  font-family: var(--np-font-body);
  font-weight: 700;
  font-size: var(--np-fs-sm);
  height: 34px;
  outline: none;
  -moz-appearance: textfield;
}
.np-qty__input::-webkit-outer-spin-button,
.np-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Resumo lateral */
.np-cart-summary {
  background: var(--np-white);
  border-radius: var(--np-radius-xl);
  padding: var(--np-spacing-lg);
  border: 1px solid var(--np-light-grey);
  box-shadow: var(--np-shadow-sm);
  position: sticky;
  top: 100px;
}
.np-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--np-light-grey);
  font-family: var(--np-font-body);
  font-size: var(--np-fs-sm);
}
.np-cart-summary__row:last-of-type { border-bottom: none; }
.np-cart-summary__total {
  font-size: var(--np-fs-xl);
  font-weight: 800;
  color: var(--np-secondary);
  font-family: var(--np-font-heading);
}

/* Cupom */
.np-cupom-row {
  display: flex;
  gap: 8px;
  margin-top: var(--np-spacing-md);
}
.np-cupom-input {
  flex: 1;
  border: 1px solid var(--np-light-grey);
  border-radius: var(--np-radius-md);
  padding: 8px 14px;
  font-family: var(--np-font-text);
  font-size: var(--np-fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  outline: none;
  transition: var(--np-transition);
}
.np-cupom-input:focus { border-color: var(--np-secondary); }

/* Carrinho vazio */
.np-cart-empty {
  text-align: center;
  padding: 80px 20px;
}
.np-cart-empty__icon {
  font-size: 5rem;
  color: var(--np-light-grey);
  display: block;
  margin-bottom: var(--np-spacing-lg);
}

@media (max-width: 767px) {
  .np-cart-table thead { display: none; }
  .np-cart-table tr {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--np-light-grey);
    align-items: start;
  }
  .np-cart-table td { display: block; padding: 0; border: none; }
  .np-cart-img { width: 64px; height: 64px; }
}

/* ── Calculadora de Frete ─────────────────────────────────── */
.np-frete-calc {
  margin: 14px 0 4px;
  padding: 14px;
  background: var(--np-off-white, #f8f8f6);
  border-radius: var(--np-radius-md);
  border: 1px solid var(--np-light-grey);
}
.np-frete-calc__label {
  font-size: .78rem;
  font-family: var(--np-font-text);
  color: var(--np-grey);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.np-frete-opcoes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.np-frete-opcao {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1.5px solid var(--np-light-grey);
  border-radius: var(--np-radius-md);
  cursor: pointer;
  font-family: var(--np-font-text);
  font-size: .84rem;
  transition: var(--np-transition);
  background: #fff;
}
.np-frete-opcao:hover { border-color: var(--np-secondary); background: #fafaf8; }
.np-frete-opcao.selected {
  border-color: var(--np-secondary);
  background: color-mix(in srgb, var(--np-secondary) 6%, white);
}
.np-frete-opcao input[type=radio] { accent-color: var(--np-secondary); flex-shrink: 0; }
.np-frete-opcao__info  { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.np-frete-opcao__nome  { font-weight: 700; color: var(--np-dark); font-size: .84rem; }
.np-frete-opcao__prazo { font-size: .74rem; color: var(--np-grey); }
.np-frete-opcao__preco { font-weight: 800; color: var(--np-secondary); white-space: nowrap; font-family: var(--np-font-heading); }
.np-frete-opcao__preco.gratis { color: var(--np-accent); }
.np-frete-loading { font-size: .82rem; color: var(--np-grey); text-align: center; padding: 8px 0; }
.np-frete-erro   { font-size: .82rem; color: var(--np-danger, #c0392b); padding: 6px 0; }
