.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 56px;
  margin-top: 20px;
}

/*.card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.card p {
  margin: 4px 0;
}

.card .product-image {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.card .star-rating {
  margin-top: 12px;
}*/

.main-content {
  padding: 20px;
  transition: margin-right 0.3s ease;
}
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-container label {
  margin-bottom: 10px;
}

.filter-container select {
  width: 100%;
  max-width: 250px;
}

.low-quantity {
  border-top: 5px solid orange;
  position: relative;
}

.low-quantity::after {
  content: 'Low Stock';
  color: orange;
  font-weight: bold;
  font-size: 12px;
  position: absolute;
  top: 10px;
  right: 5px;
  background: white;
  padding: 2px 5px;
  border-radius: 3px;
}

/* Styles for out of stock */
.out-of-stock {
  border-top: 5px solid red;
  position: relative;
}

.out-of-stock::after {
  content: 'Out of Stock';
  color: red;
  font-weight: bold;
  font-size: 12px;
  position: absolute;
  top: 10px;
  right: 5px;
  background: white;
  padding: 2px 5px;
  border-radius: 3px;
}

.star-rating-container {
  margin-bottom: 16px;
}

.star-rating-container .star-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.star-rating-container .star-row label {
  margin-right: 10px;
}

.star-rating-container .star-row .star-rating {
  display: flex;
}
.filter-row label {
  width: 120px;
  margin-right: 10px;
  font-weight: bold;
}
.filter-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.filter-container input,
.filter-row select {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.filter-container select {
  width: 100%;
  max-width: 190px;
}
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.button-container {
  display: flex;
  justify-content: center;
}
.product-bundles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
  margin: 20px 0;
}
.close-button {
  position: absolute;
  width: 40px;
  height: 40px;
  padding: 0px;
  margin: 0px;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 2rem;
  color: black;
}
.close-button:hover {
  color: white;
  background-color: #ca2020;
}

.product-bundle-container h2 {
  color: #000000;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}
.recently-viewed-container {
  margin-bottom: 20px;
  border: 2px solid #b5b5b5;
  border-radius: 8px;
  background-color: #e8e8e8;
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}
.recently-viewed-container h2 {
  color: #808080;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}
.list-container {
  margin-bottom: 20px;
  border: 2px solid #b5b5b5;
  border-radius: 8px;
  background-color: #e8e8e8;
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}
.list-container h2 {
  color: #808080;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

/**THESE WERE ADDED FOR THE RECENTLY VIEWED TO BE HORIZONTAL**/
.recently-viewed-flex {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px;
}

.recently-viewed-flex > div {
  flex: 0 0 350px;
  max-width: 350px;
  min-width: 350px;
  scroll-snap-align: start;
}
