/* ==========================================================
   Página de produto e carrinho estilo Magalu (18/10/2026)
   Só vale com body.sh-pdp-novo / body.sh-carrinho-novo
   (ver shanti-produto.php). Protótipo: exemplos/produto-carrinho-magalu.html
   ========================================================== */

body.sh-pdp-novo,
body.sh-carrinho-novo { --pdp-lado: 340px; --pdp-raio: 16px; }

/* ---------- produto: cartões ---------- */
body.sh-pdp-novo .sh-pdp-cx,
body.sh-pdp-novo .sh-pdp-quemviu,
body.sh-pdp-novo div.product .woocommerce-tabs {
  background: var(--shanti-creme);
  border-radius: var(--pdp-raio);
  padding: var(--sp-5);
}
body.sh-pdp-novo .sh-pdp-lado__in { display: flex; flex-direction: column; gap: var(--sp-3); }

/* preço */
body.sh-pdp-novo .sh-pdp-cx--preco .price {
  margin: 0 0 var(--sp-1) !important;
  font-size: 32px !important; font-weight: var(--peso-display, 800); line-height: 1.1;
  color: var(--shanti-preto);
  display: flex; flex-direction: column; align-items: flex-start;
}
body.sh-pdp-novo .sh-pdp-cx--preco .price del { order: -1; font-size: 13px; font-weight: 400; color: var(--shanti-cinza-texto); opacity: 1; }
body.sh-pdp-novo .sh-pdp-cx--preco .price ins { text-decoration: none; }
body.sh-pdp-novo .sh-pdp-cx--preco .shanti-parcelamento { margin: 0 0 var(--sp-2); font-size: 14px; }
body.sh-pdp-novo .sh-pdp-cx--preco .shanti-parcelamento strong {
  background: var(--shanti-verde-soft); color: var(--shanti-ok); padding: 1px 6px; border-radius: 5px;
}
body.sh-pdp-novo .sh-pdp-cx--preco .sh-lente-combo {
  margin: var(--sp-3) 0 0; padding: var(--sp-3) 0 0;
  border: 0; border-top: 1px dashed var(--shanti-bege-mid);
  background: none; border-radius: 0;
}
body.sh-pdp-novo .sh-pdp-cx--preco .sh-lente-combo__linha { font-size: 14px; }
body.sh-pdp-novo .sh-pdp-cx--preco .stock { margin: var(--sp-2) 0 0; }

/* botões */
body.sh-pdp-novo .sh-pdp-cx--botoes { display: flex; flex-direction: column; gap: var(--sp-2); }
body.sh-pdp-novo .sh-pdp-cx--botoes > * { margin: 0 !important; width: 100% !important; }
body.sh-pdp-novo .sh-pdp-cx--botoes .sh-lente-btn,
body.sh-pdp-novo .sh-pdp-espelho,
body.sh-pdp-novo .sh-pdp-barra button {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 15px 18px; border-radius: 12px;
  font: 700 16px/1.2 var(--shanti-fonte); text-align: center; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
}
body.sh-pdp-novo .sh-pdp-cx--botoes .sh-lente-btn--principal,
body.sh-pdp-novo .sh-pdp-btn--rosa { background: var(--shanti-rosa); color: #fff; border-color: var(--shanti-rosa); }
body.sh-pdp-novo .sh-pdp-cx--botoes .sh-lente-btn--principal:hover,
body.sh-pdp-novo .sh-pdp-btn--rosa:hover { background: var(--shanti-rosa-escuro); border-color: var(--shanti-rosa-escuro); color: #fff; }
body.sh-pdp-novo .sh-pdp-btn--linha { background: #fff; color: var(--shanti-rosa); border-color: var(--shanti-rosa); }
body.sh-pdp-novo .sh-pdp-btn--linha:hover { background: var(--shanti-rosa-light); }
body.sh-pdp-novo .sh-pdp-cx--botoes .sh-lente-btn--whats { background: #fff; color: #1a8a4a; border-color: #25a35a; }
body.sh-pdp-novo .sh-pdp-cx--botoes .sh-lente-btn--whats:hover { background: #effaf3; }
body.sh-pdp-novo .sh-pdp-cx--botoes .esta-off,
body.sh-pdp-novo .sh-pdp-cx--botoes .sh-lente-btn--principal:disabled {
  background: var(--shanti-bege-mid); border-color: var(--shanti-bege-mid); color: var(--shanti-cinza-texto); cursor: pointer;
}
body.sh-pdp-novo .sh-pdp-cx--botoes .sh-lente-aviso-cor { font-size: 13px; color: var(--shanti-cinza-texto); text-align: center; }

/* o botão de verdade e a quantidade ficam no formulário, escondidos */
body.sh-pdp-novo form.sh-pdp-form .single_add_to_cart_button,
body.sh-pdp-novo form.sh-pdp-form .quantity,
body.sh-pdp-novo form.sh-pdp-form .woocommerce-variation-price { display: none !important; }
body.sh-pdp-novo form.sh-pdp-form { margin-bottom: var(--sp-3) !important; }

/* frete */
body.sh-pdp-novo .sh-pdp-cx--frete #shipping-calc { margin: 0; padding: 0; border: 0; background: none; }
body.sh-pdp-novo .sh-pdp-cx--frete #shipping-calc > p:first-child { margin: 0 0 var(--sp-2); font-size: 14px; font-weight: 600; }
body.sh-pdp-novo .sh-pdp-cx--frete .cep-area { display: flex; gap: var(--sp-2); margin: 0 0 var(--sp-2); }
body.sh-pdp-novo .sh-pdp-cx--frete .cep-area input { flex: 1; min-width: 0; border-radius: 10px; }
body.sh-pdp-novo .sh-pdp-cx--frete .cep-area .button { border-radius: 10px; white-space: nowrap; }

/* garantias */
body.sh-pdp-novo .sh-pdp-cx--confianca .shanti-confianca {
  display: flex !important; flex-direction: column !important; gap: var(--sp-3) !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
}
body.sh-pdp-novo .sh-pdp-cx--confianca .shanti-confianca li { flex-direction: row !important; align-items: center; gap: var(--sp-3) !important; }
body.sh-pdp-novo .sh-pdp-cx--confianca .shanti-confianca strong { font-size: 14px !important; }
body.sh-pdp-novo .sh-pdp-cx--confianca .shanti-confianca span span { font-size: 13px !important; }

/* coluna do meio */
body.sh-pdp-novo .sh-pdp-vendido {
  margin: var(--sp-3) 0 0; padding-top: var(--sp-3);
  border-top: 1px solid var(--shanti-bege-mid);
  font-size: 13px; color: var(--shanti-cinza-texto);
}
body.sh-pdp-novo .sh-pdp-vendido strong { color: var(--shanti-preto); }

/* quem viu também comprou */
body.sh-pdp-novo .sh-pdp-sec { margin: 0 0 var(--sp-4); font-size: 20px; font-weight: 700; line-height: 1.25; }
body.sh-pdp-novo .sh-pdp-sec em { font-family: var(--shanti-destaque); font-style: normal; font-weight: 400; color: var(--shanti-rosa); font-size: .8em; }
body.sh-pdp-novo .sh-pdp-vitrine {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr);
  gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-2);
}
body.sh-pdp-novo .sh-pdp-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--shanti-bege-mid);
  border-radius: 14px; overflow: hidden; scroll-snap-align: start;
}
body.sh-pdp-novo .sh-pdp-card__foto { display: block; aspect-ratio: 3 / 4; background: var(--shanti-rose); }
body.sh-pdp-novo .sh-pdp-card__foto img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }
body.sh-pdp-novo .sh-pdp-card__info { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; font-size: 13px; }
body.sh-pdp-novo .sh-pdp-card__nome { color: var(--shanti-preto); text-decoration: none; min-height: 2.6em; margin-bottom: 4px; line-height: 1.3; }
body.sh-pdp-novo .sh-pdp-card__preco { font-weight: 800; font-size: 16px; color: var(--shanti-preto); }
body.sh-pdp-novo .sh-pdp-card__preco del { font-weight: 400; font-size: 12px; color: var(--shanti-cinza-texto); }
body.sh-pdp-novo .sh-pdp-card__preco ins { text-decoration: none; }
body.sh-pdp-novo .sh-pdp-card__parcela { font-size: 12px; color: var(--shanti-cinza-texto); }
body.sh-pdp-novo .sh-pdp-card__add {
  margin-top: auto; display: block; text-align: center; text-decoration: none;
  border: 1.5px solid var(--shanti-rosa); color: var(--shanti-rosa); background: #fff;
  border-radius: 10px; padding: 9px 10px; font-weight: 700; font-size: 13px;
}
body.sh-pdp-novo .sh-pdp-card__info .sh-pdp-card__parcela + .sh-pdp-card__add,
body.sh-pdp-novo .sh-pdp-card__preco + .sh-pdp-card__add { margin-top: auto; }
body.sh-pdp-novo .sh-pdp-card__add:hover { background: var(--shanti-rosa); color: #fff; }
body.sh-pdp-novo .sh-pdp-card__add.added { display: none; }
body.sh-pdp-novo .sh-pdp-card .added_to_cart { margin-top: auto; text-align: center; font-size: 13px; font-weight: 700; color: var(--shanti-ok); padding: 9px 0; }

/* lente em botões (19/10) */
body.sh-pdp-novo .sh-pdp-lentes { margin: 0 0 var(--sp-3); }
body.sh-pdp-novo .sh-pdp-rotulo { margin: 0 0 var(--sp-2); font-size: 14px; }
body.sh-pdp-novo .sh-pdp-rotulo b { font-weight: 700; }
body.sh-pdp-novo .sh-pdp-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-2); }
body.sh-pdp-novo .sh-pdp-chip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 96px; padding: 8px 15px; border: 1.5px solid var(--shanti-bege-mid); border-radius: 100px;
  background: #fff; color: var(--shanti-preto); font: 500 14px/1.25 var(--shanti-fonte); cursor: pointer;
}
body.sh-pdp-novo .sh-pdp-chip small { font-size: 11px; font-weight: 500; color: var(--shanti-cinza-texto); }
body.sh-pdp-novo .sh-pdp-chip:hover { border-color: var(--shanti-rosa-mid); background: #fff; color: var(--shanti-preto); }
body.sh-pdp-novo .sh-pdp-chip.on { border-color: var(--shanti-rosa); background: var(--shanti-rosa-light); color: var(--shanti-rosa-escuro); font-weight: 600; }
body.sh-pdp-novo .sh-pdp-chip.on small { color: var(--shanti-rosa-escuro); }
body.sh-pdp-novo .sh-pdp-dica { margin: 0 0 var(--sp-3); font-size: 13px; color: var(--shanti-cinza-texto); }
body.sh-pdp-novo .sh-pdp-dica:empty { display: none; }
body.sh-pdp-novo .sh-pdp-ajuda {
  background: none; border: 0; padding: 0; color: var(--shanti-rosa); font: 600 13px var(--shanti-fonte);
  text-decoration: underline; cursor: pointer;
}
body.sh-pdp-novo .sh-pdp-ajuda:hover { background: none; color: var(--shanti-rosa-escuro); }
body.sh-pdp-novo .sh-pdp-tem-chips form.cart .sh-lente-aviso-cor,
body.sh-pdp-novo .sh-pdp-tem-chips form.cart .sh-lente-escolhida { display: none !important; }
body.sh-pdp-novo .sh-pdp-aviso-cor { margin: 0; font-size: 13px; color: var(--shanti-cinza-texto); text-align: center; }
body.sh-pdp-novo .sh-pdp-aviso-cor[hidden] { display: none; }

/* total com lente na caixa de preço */
body.sh-pdp-novo .sh-pdp-cx--preco.com-lente > .price,
body.sh-pdp-novo .sh-pdp-cx--preco.com-lente > .shanti-parcelamento { display: none !important; }
body.sh-pdp-novo .sh-pdp-total[hidden] { display: none; }
body.sh-pdp-novo .sh-pdp-total__de { display: block; font-size: 13px; color: var(--shanti-cinza-texto); text-decoration: line-through; }
body.sh-pdp-novo .sh-pdp-total__por { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; margin: 0 0 var(--sp-1); }
body.sh-pdp-novo .sh-pdp-total .shanti-parcelamento { margin: 0 0 var(--sp-2); font-size: 14px; }
body.sh-pdp-novo .sh-pdp-total .shanti-parcelamento strong { background: var(--shanti-verde-soft); color: var(--shanti-ok); padding: 1px 6px; border-radius: 5px; }
body.sh-pdp-novo .sh-pdp-total__conta {
  display: grid; gap: 3px; padding-top: var(--sp-2); border-top: 1px dashed var(--shanti-bege-mid);
  font-size: 13px; color: var(--shanti-cinza-texto);
}
body.sh-pdp-novo .sh-pdp-total__conta div { display: flex; justify-content: space-between; gap: var(--sp-3); }

/* ficou com dúvida? */
body.sh-pdp-novo .sh-pdp-duvidas { background: var(--shanti-creme); border-radius: var(--pdp-raio); padding: var(--sp-5); }
body.sh-pdp-novo .sh-pdp-sanfona { border-top: 1px solid var(--shanti-bege-mid); }
body.sh-pdp-novo .sh-pdp-sanfona summary {
  display: flex; justify-content: space-between; gap: var(--sp-3); padding: 14px 0;
  font-weight: 600; cursor: pointer; list-style: none;
}
body.sh-pdp-novo .sh-pdp-sanfona summary::-webkit-details-marker { display: none; }
body.sh-pdp-novo .sh-pdp-sanfona summary::after { content: '+'; color: var(--shanti-rosa); font-size: 20px; line-height: 1; }
body.sh-pdp-novo .sh-pdp-sanfona[open] summary::after { content: '–'; }
body.sh-pdp-novo .sh-pdp-sanfona p { margin: 0 0 14px; color: var(--shanti-cinza-texto); max-width: 70ch; }
body.sh-pdp-novo .sh-pdp-duvidas__mais { margin: var(--sp-3) 0 0; font-size: 14px; }

/* a shanti explica (blog) */
body.sh-pdp-novo .sh-pdp-blog { background: var(--shanti-creme); border-radius: var(--pdp-raio); padding: var(--sp-5); }
body.sh-pdp-novo .sh-pdp-blog__topo { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4); }
body.sh-pdp-novo .sh-pdp-blog__topo .sh-pdp-sec { margin: 0; }
body.sh-pdp-novo .sh-pdp-blog__avatar {
  flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--shanti-preto); color: var(--shanti-creme); font-size: 20px; font-weight: var(--peso-display, 800); line-height: 1;
}
body.sh-pdp-novo .sh-pdp-blog__todos { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--shanti-rosa); white-space: nowrap; }
body.sh-pdp-novo .sh-pdp-blog__lista {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4);
}
body.sh-pdp-novo .sh-pdp-post {
  display: flex; flex-direction: column; gap: var(--sp-2); text-decoration: none; color: var(--shanti-preto);
  background: #fff; border: 1px solid var(--shanti-bege-mid); border-radius: 14px; overflow: hidden; padding: 0 0 var(--sp-4);
}
body.sh-pdp-novo .sh-pdp-post__capa { display: block; aspect-ratio: 4 / 3; background: var(--shanti-rose); overflow: hidden; }
body.sh-pdp-novo .sh-pdp-post__capa img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: transform .3s; }
body.sh-pdp-novo .sh-pdp-post:hover .sh-pdp-post__capa img { transform: scale(1.03); }
body.sh-pdp-novo .sh-pdp-post__titulo { padding: 0 var(--sp-4); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--shanti-rosa-escuro); }
body.sh-pdp-novo .sh-pdp-post__resumo { padding: 0 var(--sp-4); font-size: 13px; line-height: 1.45; color: var(--shanti-cinza-texto); }

/* descrição em cartão */
body.sh-pdp-novo div.product .woocommerce-tabs { margin-top: 0; }

/* ---------- produto: computador, 3 colunas ---------- */
@media (min-width: 1200px) {
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto {
    grid-template-columns:
      minmax(0, clamp(440px, min(38vw, calc((100vh - 215px) * 0.74 + 100px)), 620px))
      minmax(0, 1fr)
      var(--pdp-lado);
    column-gap: var(--sp-4);
    row-gap: var(--sp-4);
  }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto div.images,
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto div.summary { margin: 0 !important; }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto div.summary {
    background: var(--shanti-creme); border-radius: var(--pdp-raio); padding: var(--sp-5);
    align-self: stretch;
  }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto div.summary > * { max-width: none; }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto > .sh-pdp-lado { grid-column: 3; grid-row: 1 / span 4; align-self: stretch; }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto > .sh-pdp-quemviu { grid-column: 1 / 3; grid-row: 2; }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto > .woocommerce-tabs { grid-column: 1 / 3; grid-row: 3; }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto > .sh-pdp-duvidas { grid-column: 1 / 3; grid-row: 4; }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto > .sh-pdp-blog { grid-column: 1 / -1; grid-row: 5; }
  body.sh-pdp-novo .sh-pdp-lado__in { position: sticky; top: var(--sp-4); }
}

/* ---------- produto: tela média, 2 colunas ---------- */
@media (min-width: 993px) and (max-width: 1199px) {
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto { row-gap: var(--sp-4); }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto div.images { grid-row: 1 / span 2; }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto div.summary { margin-bottom: 0 !important; }
  body.sh-pdp-novo.woocommerce div.product.sh-pdp-pronto > .sh-pdp-lado { grid-column: 2; grid-row: 2; }
}

/* ---------- produto: celular, tudo empilhado ---------- */
@media (max-width: 992px) {
  body.sh-pdp-novo div.product.sh-pdp-pronto { display: flex; flex-direction: column; gap: var(--sp-2); }
  body.sh-pdp-novo div.product.sh-pdp-pronto > * { width: 100% !important; float: none !important; margin-bottom: 0 !important; }
  body.sh-pdp-novo .sh-pdp-cx,
  body.sh-pdp-novo .sh-pdp-quemviu,
  body.sh-pdp-novo div.product .woocommerce-tabs,
  body.sh-pdp-novo .sh-pdp-duvidas,
  body.sh-pdp-novo .sh-pdp-blog { padding: var(--sp-4); }
  body.sh-pdp-novo .sh-pdp-blog__lista { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-2); }
  body.sh-pdp-novo .sh-pdp-post { scroll-snap-align: start; }
  body.sh-pdp-novo .sh-pdp-chips { display: grid; grid-template-columns: 1fr 1fr; }
  body.sh-pdp-novo .sh-pdp-chip { min-width: 0; }
  body.sh-pdp-novo .sh-pdp-lado__in { gap: var(--sp-2); }
  body.sh-pdp-novo .sh-pdp-cx--preco .price { font-size: 28px !important; }
  body.sh-pdp-novo .sh-pdp-vitrine { grid-auto-columns: 46%; }
  body.sh-pdp-novo { padding-bottom: 76px; }

  body.sh-pdp-novo .sh-pdp-barra {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; align-items: center; gap: var(--sp-3);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--shanti-creme); border-top: 1px solid var(--shanti-bege-mid);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .05);
    transform: translateY(110%); transition: transform .25s;
  }
  body.sh-pdp-novo .sh-pdp-barra.mostra { transform: none; }
  body.sh-pdp-novo .sh-pdp-barra__preco { flex: 1; min-width: 0; }
  body.sh-pdp-novo .sh-pdp-barra__preco strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
  body.sh-pdp-novo .sh-pdp-barra__preco span { font-size: 12px; color: var(--shanti-cinza-texto); }
  body.sh-pdp-novo .sh-pdp-barra button { padding: 13px 18px; font-size: 15px; }
  /* o WhatsApp redondo e o "voltar ao topo" sobem pra não cobrir a barra */
  body.sh-pdp-novo #shanti-wpp,
  body.sh-pdp-novo #ast-scroll-top { transition: transform .25s; }
  body.sh-pdp-barra-on #shanti-wpp,
  body.sh-pdp-barra-on #ast-scroll-top { transform: translateY(-72px); }
}
@media (min-width: 993px) {
  body.sh-pdp-novo .sh-pdp-barra { display: none; }
}

/* ==========================================================
   Carrinho
   ========================================================== */
body.sh-carrinho-novo .sh-car-passos {
  display: flex; justify-content: center; align-items: center; gap: 0;
  list-style: none; margin: 0 0 var(--sp-5); padding: 0; font-size: 13px; color: var(--shanti-cinza-texto);
}
body.sh-carrinho-novo .sh-car-passos li { display: flex; align-items: center; gap: var(--sp-2); margin: 0; }
body.sh-carrinho-novo .sh-car-passos li + li::before { content: ''; width: 40px; height: 2px; background: var(--shanti-bege-mid); margin: 0 10px; }
body.sh-carrinho-novo .sh-car-passos i {
  width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: 12px; background: var(--shanti-bege-mid);
}
body.sh-carrinho-novo .sh-car-passos li.on { color: var(--shanti-preto); font-weight: 700; }
body.sh-carrinho-novo .sh-car-passos li.on i { background: var(--shanti-rosa); color: #fff; }

body.sh-carrinho-novo .woocommerce-cart-form,
body.sh-carrinho-novo .cart-collaterals .cart_totals,
body.sh-carrinho-novo .sh-car-receita {
  background: var(--shanti-creme); border-radius: 16px; padding: var(--sp-5);
}
body.sh-carrinho-novo .woocommerce-cart-form table.shop_table { border: 0; margin: 0; }
body.sh-carrinho-novo .woocommerce-cart-form table.shop_table th { background: none; border: 0; font-size: 12px; color: var(--shanti-cinza-texto); }
body.sh-carrinho-novo .woocommerce-cart-form table.shop_table td { border-top: 1px solid var(--shanti-bege-mid); padding: var(--sp-4) var(--sp-2); }
body.sh-carrinho-novo .woocommerce-cart-form td.product-thumbnail img { width: 88px !important; border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--shanti-rose); }
body.sh-carrinho-novo .woocommerce-cart-form td.product-name a { color: var(--shanti-preto); font-weight: 600; text-decoration: none; }
body.sh-carrinho-novo .woocommerce-cart-form td.product-subtotal { font-weight: 800; font-size: 17px; }
body.sh-carrinho-novo .woocommerce-cart-form .quantity .qty { border-radius: 10px; }
body.sh-carrinho-novo .woocommerce-cart-form td.actions { border-top: 1px solid var(--shanti-bege-mid); }
body.sh-carrinho-novo .woocommerce-cart-form td.actions .coupon input.input-text { border-radius: 10px; }

body.sh-carrinho-novo .sh-car-receita { display: flex; gap: var(--sp-3); align-items: flex-start; margin-top: var(--sp-3); font-size: 14px; }
body.sh-carrinho-novo .sh-car-receita p { margin: 0; color: var(--shanti-cinza-texto); }
body.sh-carrinho-novo .sh-car-receita strong { color: var(--shanti-preto); }
body.sh-carrinho-novo .sh-car-receita__icone {
  flex: 0 0 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--shanti-rosa-light); color: var(--shanti-rosa);
}

body.sh-carrinho-novo .cart-collaterals .cart_totals { border: 0 !important; box-shadow: none !important; }
body.sh-carrinho-novo .cart_totals h2 { font-size: 18px; margin: 0 0 var(--sp-3) !important; padding: 0 !important; background: none !important; border: 0 !important; }
body.sh-carrinho-novo .cart_totals table.shop_table { border: 0; }
body.sh-carrinho-novo .cart_totals table.shop_table th,
body.sh-carrinho-novo .cart_totals table.shop_table td { border: 0; background: none; padding: 6px 0; font-size: 14px; }
body.sh-carrinho-novo .cart_totals tr.order-total th,
body.sh-carrinho-novo .cart_totals tr.order-total td { border-top: 1px solid var(--shanti-bege-mid); padding-top: var(--sp-3); font-size: 16px; }
body.sh-carrinho-novo .cart_totals tr.order-total td { font-size: 24px; font-weight: 800; text-align: right; }
body.sh-carrinho-novo .cart_totals tr.sh-car-parcela td { text-align: right; padding-top: 0; font-size: 13px; }
body.sh-carrinho-novo .cart_totals tr.sh-car-parcela strong { background: var(--shanti-verde-soft); color: var(--shanti-ok); padding: 1px 6px; border-radius: 5px; }
body.sh-carrinho-novo .cart_totals .checkout-button {
  display: block; width: 100%; border-radius: 12px !important; padding: 15px 18px !important;
  background: var(--shanti-rosa) !important; color: #fff !important; font-size: 16px !important; font-weight: 700 !important;
}
body.sh-carrinho-novo .cart_totals .checkout-button:hover { background: var(--shanti-rosa-escuro) !important; }
body.sh-carrinho-novo .sh-car-mais {
  display: block; margin-top: var(--sp-2); padding: 13px 18px; border-radius: 12px; text-align: center;
  border: 1.5px solid var(--shanti-rosa); color: var(--shanti-rosa); font-weight: 700; text-decoration: none;
}
body.sh-carrinho-novo .sh-car-mais:hover { background: var(--shanti-rosa-light); }
body.sh-carrinho-novo .sh-car-seguro { display: flex; align-items: center; justify-content: center; gap: 6px; margin: var(--sp-3) 0 0; font-size: 12px; color: var(--shanti-cinza-texto); }
body.sh-carrinho-novo .sh-car-frete {
  margin-bottom: var(--sp-3); padding: 10px 12px; border-radius: 10px;
  background: var(--shanti-verde-soft); color: var(--shanti-ok); font-size: 13px;
}
body.sh-carrinho-novo .sh-car-frete__trilho { display: block; height: 6px; margin-top: 7px; background: #fff; border-radius: 10px; overflow: hidden; }
body.sh-carrinho-novo .sh-car-frete__trilho i { display: block; height: 100%; background: var(--shanti-ok); border-radius: 10px; }

@media (min-width: 993px) {
  body.sh-carrinho-novo .woocommerce:has(.woocommerce-cart-form) {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-4); align-items: start;
  }
  body.sh-carrinho-novo .woocommerce:has(.woocommerce-cart-form) > * { grid-column: 1; }
  body.sh-carrinho-novo .woocommerce:has(.woocommerce-cart-form) > .sh-car-passos { grid-column: 1 / -1; }
  body.sh-carrinho-novo .woocommerce:has(.woocommerce-cart-form) > .cart-collaterals { grid-column: 2; grid-row: 2 / span 3; position: sticky; top: var(--sp-4); }
  body.sh-carrinho-novo .cart-collaterals .cart_totals { width: 100% !important; float: none !important; }
}
@media (max-width: 768px) {
  /* cada item vira um cartão: foto | nome e lente | quantidade e subtotal */
  body.sh-carrinho-novo .woocommerce-cart-form table.shop_table thead { display: none; }
  body.sh-carrinho-novo .woocommerce-cart-form tr.cart_item {
    display: grid !important; grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas: "foto nome tira" "foto qtd sub";
    column-gap: var(--sp-3); row-gap: var(--sp-2); align-items: center;
    padding: var(--sp-4) 0; border-top: 1px solid var(--shanti-bege-mid);
  }
  body.sh-carrinho-novo .woocommerce-cart-form tr.cart_item:first-child { border-top: 0; padding-top: 0; }
  body.sh-carrinho-novo .woocommerce-cart-form tr.cart_item td {
    display: block !important; border: 0 !important; padding: 0 !important; text-align: left !important; background: none !important;
  }
  body.sh-carrinho-novo .woocommerce-cart-form tr.cart_item td::before { display: none !important; }
  body.sh-carrinho-novo .woocommerce-cart-form td.product-thumbnail { grid-area: foto; align-self: start; }
  body.sh-carrinho-novo .woocommerce-cart-form td.product-thumbnail img { width: 76px !important; }
  body.sh-carrinho-novo .woocommerce-cart-form td.product-name { grid-area: nome; font-size: 14px; }
  body.sh-carrinho-novo .woocommerce-cart-form td.product-name dl { margin: 4px 0 0; font-size: 12px; color: var(--shanti-cinza-texto); }
  body.sh-carrinho-novo .woocommerce-cart-form td.product-remove { grid-area: tira; align-self: start; }
  body.sh-carrinho-novo .woocommerce-cart-form tr.cart_item td.product-price { display: none !important; }
  body.sh-carrinho-novo .woocommerce-cart-form td.product-quantity { grid-area: qtd; }
  body.sh-carrinho-novo .woocommerce-cart-form td.product-subtotal { grid-area: sub; text-align: right !important; font-size: 16px; }
  body.sh-carrinho-novo .woocommerce-cart-form td.actions { display: block; padding: var(--sp-4) 0 0 !important; }
}
@media (max-width: 992px) {
  body.sh-carrinho-novo .woocommerce-cart-form,
  body.sh-carrinho-novo .cart-collaterals .cart_totals,
  body.sh-carrinho-novo .sh-car-receita { padding: var(--sp-4); }
  body.sh-carrinho-novo .cart-collaterals { margin-top: var(--sp-3); }
  body.sh-carrinho-novo .sh-car-passos li:not(.on) span { display: none; }
  body.sh-carrinho-novo .sh-car-passos li + li::before { width: 16px; margin: 0 6px; }
}
