.cart-page{
  padding:48px 24px 80px;
}

.cart-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:30px;
  align-items:start;
}

/* PRODUTOS */
.cart-left{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
}

.cart-item{
  background:#fff;
  border-radius:22px;
  padding:24px;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:transform .2s ease;
  border:1px solid rgba(11,125,58,.06);
}

.cart-item-main{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:16px;
  align-items:start;
}

.cart-thumb-wrap{
  width:96px;
  height:96px;
  border-radius:18px;
  overflow:hidden;
  background:#f4f7f4;
  border:1px solid #eef2ef;
  flex-shrink:0;
}

.cart-thumb-link,
.cart-thumb{
  display:block;
  width:100%;
  height:100%;
}

.cart-thumb{
  object-fit:cover;
}

.cart-item-content{
  min-width:0;
}

.cart-item:hover{
  transform:translateY(-4px);
}

.cart-item-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.cart-item-category{
  font-size:16px;
  font-weight:600;
  color:#0f5132;
  background:#e6f4ea;
  padding:4px 10px;
  border-radius:999px;
  display:inline-block;
}

.cart-item-title{
  font-size:18px;
  font-weight:600;
  min-height:50px;
  margin:0 0 8px;
}

.cart-item-meta{
  font-size:14px;
  color:#666;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.cart-item-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #eef2ef;
}

.cart-qtd input{
  width:90px;
  padding:8px;
  border-radius:8px;
  border:1px solid #ccc;
  text-align:center;
}

.cart-subtotal-box strong{
  font-size:18px;
  color:#0b7d3a;
}

.cart-remove{
  color:#dc3545;
  text-decoration:none;
  font-size:26px;
  line-height:1;
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#fff4f4;
}

/* RIGHT */
.cart-right{
  position:sticky;
  top:120px;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.cart-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:center;
  padding-top:4px;
}

/* RESUMO */
.cart-summary{
  background:#f3faf5;
  border-radius:22px;
  padding:24px;
}

.cart-summary-line{
  display:flex;
  justify-content:space-between;
  margin-bottom:8px;
}

.cart-summary-value{
  font-size:22px;
  font-weight:800;
  color:#0b7d3a;
}

/* BARRA PESO */
.peso-progress{
  background:#e6efe9;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  margin-top:8px;
}

.peso-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#1dbf73,#0b7d3a);
  transition:width .4s ease;
}

.peso-alerta{
  color:#c0392b;
  font-weight:600;
}

/* FRETE */
.cart-frete-card{
  background:#fff;
  border-radius:22px;
  padding:24px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}

.btn-frete{
  background:#0b4d1c;
  color:#fff;
  padding:14px;
  border:none;
  border-radius:12px;
  width:100%;
  cursor:pointer;
}

/* RESULTADO */
.frete-result-card{
  background:#f3faf5;
  border-radius:22px;
  padding:20px;
}

.finalizar-box{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.whatsapp-helper{
  color:#55615b;
  line-height:1.5;
}

/* BOTﾃグ FINAL */
.btn-finalizar-whatsapp{
  padding:18px;
  font-size:18px;
  font-weight:700;
  background:linear-gradient(135deg,#1dbf73,#0b7d3a);
  color:#fff;
  border:none;
  border-radius:999px;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(37,211,102,.35);
}

.btn-finalizar-whatsapp:hover{
  transform:translateY(-2px);
}

.btn-disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* MODAL */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.modal-card{
  background:#fff;
  border-radius:22px;
  padding:28px;
  max-width:420px;
  width:90%;
  text-align:center;
}

.modal-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:20px;
}

.btn-outline{
  padding:12px 18px;
  border-radius:999px;
  border:2px solid #0b4d1c;
  color:#0b4d1c;
  text-decoration:none;
}

.btn-secondary{
  padding:12px 18px;
  border:none;
  border-radius:999px;
  background:#e5e5e5;
  cursor:pointer;
}

/* MOBILE */
@media(max-width:900px){
  .cart-grid{
    grid-template-columns:1fr;
  }
  .cart-left{
    grid-template-columns:1fr;
  }
  .cart-right{
    position:static;
  }
  .cart-item-main{
    grid-template-columns:72px 1fr;
  }
  .cart-thumb-wrap{
    width:72px;
    height:72px;
  }
}
/* ==============================
   AJUSTE CARD TIPOGRAFIA
============================== */

.cart-item-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:nowrap;
}

.cart-qtd label{
  font-size:13px;
  font-weight:500;
  margin-bottom:4px;
  color:#555;
}

.cart-subtotal-box{
  text-align:right;
  white-space:nowrap;
}

.cart-subtotal-box span{
  display:block;
  font-size:13px;
  color:#666;
  margin-bottom:2px;
}

.cart-subtotal-box strong{
  font-size:18px;
  font-weight:800;
  color:#0b7d3a;
  white-space:nowrap;
}
/* ==============================
   CTA ADICIONAR MAIS PRODUTOS
============================== */

.btn-add-more{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:14px 22px;
  border-radius:999px;

  background:#ffffff;
  border:2px solid #0b7d3a;
  color:#0b7d3a;

  font-weight:600;
  text-decoration:none;

  transition:all .2s ease;
}

.btn-add-more:hover{
  background:#0b7d3a;
  color:#fff;
  transform:translateY(-2px);
}
/* ==============================
   FRETE PREMIUM
============================== */

.frete-input-group{
  display:flex;
  gap:12px;
  align-items:flex-end;
}

.frete-field{
  flex:1;
  display:flex;
  flex-direction:column;
}

.frete-field label{
  font-size:13px;
  font-weight:600;
  margin-bottom:6px;
  color:#444;
}

.frete-field input{
  padding:14px;
  border-radius:12px;
  border:1px solid #d7ddd9;
  font-size:15px;
  transition:all .2s ease;
}

.frete-field input:focus{
  border-color:#0b7d3a;
  box-shadow:0 0 0 4px rgba(29,191,115,.12);
  outline:none;
}

.btn-frete{
  height:48px;
  padding:0 22px;
  border-radius:12px;
  font-weight:600;
}
/* ==============================
   PREÇO PROTAGONISTA
============================== */

.cart-item-weight{
  font-size:14px;
  color:#666;
}

.cart-price-box{
  margin-top:6px;
}

.price-label{
  font-size:12px;
  color:#777;
  display:block;
  margin-bottom:2px;
}

.price-main{
  display:flex;
  align-items:center;
  gap:10px;
}

.price-value{
  font-size:24px;
  font-weight:800;
  color:#0b7d3a;
  transition:all .25s ease;
}

.price-old{
  font-size:14px;
  color:#999;
  text-decoration:line-through;
}

/* animação quando atualizar */
.price-value.updated{
  transform:scale(1.08);
  background:#e9f8f0;
  padding:4px 8px;
  border-radius:8px;
}
.cart-product-link{
  color: #1c1c1c;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  transition: all .2s ease;
}

.cart-product-link:hover{
  color: #0b7d3a;
}
.cart-item-title{
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  margin:0;
}

.cart-item-measure{
  font-size:15px;
  color:#27342d;
}
.peso-nivel-1 {
  color: #e67e22;
  font-weight: 600;
}

.peso-nivel-2 {
  color: #1e8449;
  font-weight: 600;
}

.peso-nivel-3 {
  color: #064d1c;
  font-weight: 700;
}

/* ===============================
   MODAL ESPECIALISTA
=============================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  padding: 28px;
  position: relative;
  animation: modalFade .25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.modal-box h3 {
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  opacity: .7;
  margin-bottom: 18px;
}

.btn-modal-enviar {
  width: 100%;
  background: #06461c;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.btn-modal-enviar:hover {
  opacity: .9;
}
.modal-sucesso {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-sucesso.active {
  display: flex;
}

.modal-sucesso-content {
  background: #fff;
  padding: 35px;
  border-radius: 16px;
  max-width: 420px;
  text-align: center;
  animation: fadeUp .3s ease;
}

.check-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: #25D366;
  color: #fff;
  font-size: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-whats {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 18px;
  font-weight: 600;
  display: none;
}

.contador {
  margin-top: 15px;
  font-size: 14px;
  opacity: .7;
}

@keyframes fadeUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.frete-erro {
  background: #fff3f3;
  border: 1px solid #ffd6d6;
  color: #b00000;
  padding: 14px;
  border-radius: 6px;
  margin-top: 12px;
  font-weight: 500;
}
