/* Basic Reset */
* {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f8f9fa;
}

/* Main layout with flexbox */
main {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}
header {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 3;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

/* Product Image */
.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Product Info */
.product-title {
  font-size: 16px;
  font-weight: bold;
  padding: 8px 12px 0 12px;
}
.product-price {
  font-size: 14px;
  color: #000;
  padding: 4px 12px 12px 12px;
}

/* Button */
.bundle-btn {
  margin: 0 12px 12px 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.bundle-btn:hover {
  background: #f2f2f2;
}
.bundle-btn.selected {
  background: #000;
  color: #fff;
}
.bundle-btn .btn-icon {
  width: 16px;
  height: 16px;
}

/* Sidebar */
.bundle-sidebar {
  background: #fff;
  border: 2px solid #000; /* Black border */
  border-radius: 10px;
  padding: 16px;
  flex: 1;
  min-width: 250px;
  margin-left: 24px;
  height: fit-content;
}
#bundleList {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
#bundleList li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
#bundleList img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
  margin-right: 8px;
}
.totals {
  margin: 16px 0;
}
#addToCartBtn {
  width: 100%;
  padding: 10px;
  background: black;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
#addToCartBtn:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 16px;
  background: #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.progress {
  height: 100%;
  width: 0;
  background: black;
  border-radius: 8px;
  transition: width 0.3s;
}

/* Responsive */
@media (max-width: 700px) {
  main {
    flex-direction: column;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .bundle-sidebar {
    margin-left: 0;
    margin-top: 24px;
  }
}
