* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background-color: #f5f5f5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}
header h1 {
  font-size: 2rem;
  color: #333;
}

.leftmoney {
  position: sticky;
  top: 0;
  background: #00c389;
  text-align: center;
  padding: 15px;
  z-index: 1000;
  margin-bottom: 20px;
}
.leftmoney h2 {
  color: #fff;
  font-size: 1.8rem;
}

.items-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 20px 0;
  margin-bottom: 100px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}
.card h3 {
  margin: 10px 0;
  font-size: 1.3rem;
  color: #222;
  flex-grow: 1;
}
.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00b074;
  margin-bottom: 15px;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s;
  font-weight: bold;
}
.actions .buy {
  background: #00b074;
}
.actions .buy:hover {
  background: #008c5c;
}
.actions .sell {
  background: #ff4444;
}
.actions .sell:hover {
  background: #cc3636;
}
.actions input {
  width: 60px;
  text-align: center;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.receipt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #111;
  color: #eee;
  border: 2px solid #00ff99;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.6);
  font-family: "Courier New", monospace;
  max-height: 50vh;
  overflow-y: auto;
  z-index: 1000;
}

.receipt h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  text-align: center;
  color: #00ff99;
  border-bottom: 1px dashed #00ff99;
  padding-bottom: 5px;
}

.items-list {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.items-list div {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
}

.total {
  font-weight: bold;
  font-size: 1.05rem;
  text-align: right;
  margin-top: 10px;
  color: #00ff99;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s;
}

.notification.success {
  background-color: #00c389;
}

.notification.error {
  background-color: #ff4444;
}

@media (max-width: 1024px) {
  .items-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .items-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .receipt {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 20px;
  }
  
  body {
    padding: 0 15px;
  }
  
  .card {
    padding: 15px;
  }



  .receipt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  font-family: "Poppins", sans-serif;
  color: #333;
}

.receipt h2 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.items-list div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 1rem;
}

.items-list div span:first-child {
  font-weight: 500;
}

.total {
  border-top: 2px solid #222;
  margin-top: 10px;
  padding-top: 8px;
  text-align: right;
  font-weight: bold;
  color: #0a9f6a;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .receipt {
    position: static;
    width: 100%;
    margin-top: 20px;
  }
}

}