@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary-color: #0066ff;
  --secondary-color: #ff9800;
  --danger-color: #e53935;
  --text-color: #2c3e50;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.05);
  --border-color: #e0e0e0;
  --success-color: #43a047;
}

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      background-color: var(--light-gray);
      font-family: 'Roboto', sans-serif;
      color: var(--text-color);
    }

    h2 {
      color: var(--primary-color);
      margin-bottom: 20px;
    }

    .container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      padding: 20px;
      align-items: flex-start;
    }

    .carrinho-items {
      display: flex;
      flex-direction: column;
      gap: 15px;
      width: 60%;
      min-width: 300px;
    }

    .item-carrinho {
      padding: 20px;
      border: 1px solid var(--border-color);
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 70%;
    }

    .quantity {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .quantity input {
      width: 40px;
      height: 35px;
      text-align: center;
      font-size: 1rem;
      border-radius: 8px;
      border: 1px solid var(--border-color);
    }

    .quantity-btn {
      background-color: var(--secondary-color);
      color: white;
      padding: 8px;
      border-radius: 50%;
      font-size: 1.3rem;
      width: 35px;
      height: 35px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .quantity-btn:hover {
      background-color: var(--hover-secondary);
    }

    .remove-btn {
      background-color: var(--danger-color);
      color: white;
      text-decoration: none;
      padding: 8px 15px;
      border-radius: 5px;
      text-align: center;
      width: 100%;
      max-width: 200px;
      transition: background-color 0.3s ease-in-out;
      display: inline-block;
    }

    .remove-btn:hover {
      background-color: red;
      transition: background-color 0.3s ease-in-out;
      display: inline-block;
    }

    .total {
      background-color: var(--primary-color);
      color: white;
      padding: 20px;
      border-radius: 8px;
      text-align: center;
      width: 100%;
      max-width: 350px;
      margin-left: auto;
      margin-top: 20px;
    }

    .total button {
      background-color: white;
      color: var(--primary-color);
      border: none;
      padding: 10px 20px;
      font-size: 16px;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 10px;
      transition: background-color 0.3s ease-in-out;
    }

    .total button:hover {
      background-color: #f1f1f1;
    }
.cupom-fiscal {
  flex: 1 1 30%;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px var(--shadow-color);
  min-width: 250px;
  margin-top: 60px;
}
.cupom-fiscal h3 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.cupom-fiscal p {
  font-size: 14px;
  margin: 8px 0;
}

.cupom-fiscal table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.cupom-fiscal table th,
.cupom-fiscal table td {
  text-align: left;
  padding: 10px;
  font-size: 13px;
  border-bottom: 1px solid #eaeaea;
}

.cupom-fiscal table th {
  background-color: #f0f0f0;
}

.cupom-fiscal .subtotal {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: right;
  color: var(--success-color);
  margin-top: 20px;
}

    .botao-finalizar {
      background-color: var(--secondary-color);
      color: white;
      padding: 12px 24px;
      font-size: 18px;
      border-radius: 50px;
      text-align: center;
      cursor: pointer;
      margin-top: 20px;
      width: 100%;
      border: none;
      transition: background-color 0.3s ease-in-out;
    }

    .botao-finalizar:hover {
      background-color: var(--hover-secondary);
    }



    @media (max-width: 768px) {
      .container {
        flex-direction: column;
        align-items: stretch;
      }

      .carrinho-items,
      .cupom-fiscal,
      .total {
        width: 100%;
        margin-left: 0;
      }

      .cupom-fiscal {
        margin-top: 20px;
      }
      .item-carrinho {
            width: 100%;
    }

      
    }
    .nome-produto{
        
    }
    .print-btn, .share-btn {
    padding: 10px 16px;
    margin: 8px 4px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.print-btn:hover, .share-btn:hover {
    background-color: #0056b3;
}

@media print {
  body * {
    visibility: hidden;
  }

  .print-area, .print-area * {
    visibility: visible;
  }

  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 58mm; /* ou 80mm, dependendo da impressora */
    padding: 0;
    font-size: 10pt;
    font-family: monospace;
  }

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

  .print-area td, .print-area th {
    padding: 2px 0;
    font-size: 10pt;
  }

  @page {
    size: 58mm auto;
    margin: 0;
  }
}

