 .cart-section {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .cart-items {
    flex: 2;
    min-width: 300px;
  }
  
  .cart-summary {
    flex: 1;
    background: var(--bg-light, #fdfdff);
    padding: 1.5rem;
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(0,0,0,0.05));
    min-width: 250px;
    align-self: flex-start; /* Alinha o resumo no topo */
  }

  .cart-table {
    width: 100%;
    border-collapse: collapse;
  }

  .cart-table th, .cart-table td {
    padding: 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
  }

  .cart-table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
  }

  .cart-table thead {
    background: var(--bg-light, #fdfdff);
  }

  /* --- NOVO COMPONENTE DE QUANTIDADE (STEPPER) --- */
  .quantity-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius, 8px);
    max-width: 110px;
    background-color: #fff;
  }

  .quantity-input {
    width: 40px;
    height: 38px;
    text-align: center;
    border: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background-color: transparent;
  }
  .quantity-input::-webkit-outer-spin-button,
  .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Remove setas no Chrome/Safari */
    margin: 0;
  }

  .stepper-btn {
    background-color: #f9f9f9;
    border: 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 400;
    width: 35px;
    height: 38px;
    color: #555;
    transition: background-color 0.2s, color 0.2s;
  }

  .stepper-btn:hover {
    background-color: #f0f0f0;
    color: #000;
  }
  .stepper-btn:first-child {
    border-right: 1px solid #e0e0e0;
    border-radius: 7px 0 0 7px;
  }
  .stepper-btn:last-child {
    border-left: 1px solid #e0e0e0;
    border-radius: 0 7px 7px 0;
  }
  
  /* --- BOTÃO DE REMOVER ITEM --- */
  .btn-remove {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.5rem;
    transition: color 0.2s;
  }
  .btn-remove:hover {
    color: #d9534f;
  }

  /* --- LAYOUT RESPONSIVO PARA CELULAR --- */
  @media (max-width: 992px) {
    .cart-section {
      flex-direction: column;
    }
  }

  @media (max-width: 768px) {
    .cart-table thead {
      display: none; /* Esconde o cabeçalho da tabela */
    }

    .cart-table tr {
      display: grid;
      grid-template-areas:
        "image details details"
        "image quantity price"
        "actions actions actions";
      grid-template-columns: 80px 1fr auto;
      gap: 0.5rem 1rem;
      padding: 1rem;
      border: 1px solid #eee;
      border-radius: var(--border-radius, 8px);
      margin-bottom: 1.5rem;
    }
    
    .cart-table td {
      border: none;
      padding: 0;
      display: flex;
      align-items: center;
    }

    .cart-table td[data-label="Produto"] { grid-area: image; }
    .cart-table td[data-label="Detalhes"] { grid-area: details; flex-direction: column; align-items: flex-start;}
    .cart-table td[data-label="Preço"] { grid-area: price; justify-content: flex-end; font-size: 1.1rem;}
    .cart-table td[data-label="Quantidade"] { grid-area: quantity; }
    .cart-table td[data-label="Ações"] { grid-area: actions; justify-content: flex-end; padding-top: 0.5rem; border-top: 1px solid #f0f0f0; margin-top: 0.5rem;}
  }