
  tool body {
    margin: 0;
    font-family: sans-serif;
    background: #f4f4f4;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .top-box,
  .money-box {
    width: 1100px;
    margin: 0 auto;
    position: relative;
  }

  .top-box {
    background: white;
    padding: 30px 20px;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
  }

  .top-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4caf50;
    margin-bottom: 15px;
  }

  .money-box {
    background: #4caf50;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  
  .money-box h2 {
    margin: 0; /* Remove default margin */
    color: white;
    font-size: 1.em; /* Ensure the size matches the container */
}

  .cart-popup {
    width: 100%;
    max-width: 300px;
    margin: 5px auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 15px;
  }

  .cart-popup h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #4caf50;
  }

  .cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
  }

  .cart-total {
    font-weight: bold;
    text-align: right;
    padding-top: 10px;
    border-top: 2px solid #4caf50;
    color: #4caf50;
  }

  #items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
  }

  .item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 10px;
    padding: 15px;
    width: 300px;
    text-align: center;
  }

  .item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
  }

  .item h3 {
    margin: 10px 0 5px;
  }

  .item p {
    margin: 5px 0;
    color: #4caf50;
    font-weight: bold;
  }

  .item .buy-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
  }

  .item .counter {
    padding: 8px 12px;
    border: 1px solid black;
    background: transparent;
    color: black;
    width: 50%;
    text-align: center;
  }

  .item .sell-btn {
    background: #ddd;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 100%;
  }

  .item .sell-btn:hover:not(:disabled) {
    background: #ccc;
  }

  .item .sell-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .item .buy-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
    width: 100%;
  }

  .item .buy-btn:hover {
    background: #45a049;
  }

  @media (max-width: 1040px) {
    .top-box,
    .money-box {
      width: 95%;
    }
    .item {
      width: 40%;
    }
    .cart-popup {
      width: 95%;
    }
  }

  @media (max-width: 600px) {
    .top-box,
    .money-box {
      width: 100%;
      padding: 20px 10px;
      box-sizing: border-box;
    }
    .cart-popup {
    width: 90%;
    margin: 5px auto;
    padding: 10px;
    border-radius: 8px;
    }

    .item {
      width: 100%;
      margin: 10px 0;
    }
  }
