* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #f8f8f8;
  padding: 20px;
}

.bundle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product-section {
  flex: 2;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 180px; /* ✅ Reduced height */
  object-fit: cover;
  border-radius: 5px;
}

.add-btn {
  background: black;
  color: white;
  border: none;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.added {
  background: green !important;
}

.bundle-sidebar {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bundle-sidebar h3 {
  margin-bottom: 10px;
}

.progress {
  background: #eee;
  border-radius: 20px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-bar {
  background: #000;
  color: white;
  text-align: center;
  padding: 5px 0;
  width: 0%;
  transition: width 0.3s ease;
}

.bundle-list {
  list-style: none;
  margin-top: 10px;
  padding-left: 0;
}

.bundle-list li {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.bundle-list img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 4px;
}

.summary {
  margin-top: 20px;
}

#add-to-cart {
  background: #000;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 5px;
  margin-top: 15px;
  cursor: pointer;
}

#add-to-cart:disabled {
  background: grey;
  cursor: not-allowed;
}

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