/* Estilo do contador no mobile */
#mobile-cart-count {
    display: none;
    font-size: 14px;
    font-weight: 700;
    background: #088178;
    color: #fff;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 8px;
}

/* Ativar abaixo de 799px */
@media (max-width: 799px) {
    #mobile-cart-count {
        display: inline-block;
    }
    
}



/* ===============================
   CUPOM + TOTAL EM COLUNA (MOBILE)
================================ */
@media (max-width: 768px) {

  #cart-add {
    display: flex;
    flex-direction: column; /* 🔹 UM EMBAIXO DO OUTRO */
    gap: 20px;               /* espaço entre os cards */
  }

  #cuopon,
  #subtotal {
    width: 100%;
  }

  #cuopon input,
  #subtotal table {
    width: 100%;
  }

  #cuopon button,
  #subtotal button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }
}


/* ===============================
   REMOVER ESPAÇO VAZIO ENTRE COLUNAS
================================ */
@media (max-width: 768px) {

  #cart table {
    width: 100%;
    table-layout: fixed;       /* 🔥 FUNDAMENTAL */
    border-collapse: collapse; /* remove gaps */
  }

  #cart th,
  #cart td {
    padding: 1px 2px;          /* 🔥 reduz MUITO o espaço */
    text-align: center;
    vertical-align: middle;
    line-height: 1.1;
    font-size: 11px;
  }

  /* 🔹 REMOVE largura mínima escondida */
  #cart th,
  #cart td {
    min-width: 0;
  }

  /* 🔹 IMAGEM NÃO EMPURRA COLUNA */
  #cart img {
    width: 30px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }

  /* 🔹 INPUT NÃO EMPURRA */
  #cart input[type="number"] {
    width: 36px;
    padding: 1px;
    font-size: 11px;
  }

  /* 🔹 BOTÃO REMOVER */
  #cart button {
    padding: 1px 3px;
    font-size: 11px;
  }

  /* 🔹 CONTROLE REAL DAS COLUNAS */
  #cart th:nth-child(1),
  #cart td:nth-child(1) { width: 4%; }

  #cart th:nth-child(2),
  #cart td:nth-child(2) { width: 10%; }

  #cart th:nth-child(3),
  #cart td:nth-child(3) { width: 32%; }

  #cart th:nth-child(4),
  #cart td:nth-child(4) { width: 12%; }

  #cart th:nth-child(5),
  #cart td:nth-child(5) { width: 16%; }

  #cart th:nth-child(6),
  #cart td:nth-child(6) { width: 16%; }
}
