* {
  box-sizing: border-box;
}

.store-item-container {
  background-color: rgba(211, 199, 180, 0);
  /*width: 20rem;*/
  /*display: block;*/
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  row-gap: 50px;
  padding: 0 100px; /* Adds left and right padding */
  transition: transform .2s; /* Animation */

}

.store-item-container.img:hover {
  transform: scale(1.05); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

.store-subheading {
  font-size: 16px;
  text-align: center;
  padding-right:100px;
  padding-left:100px;
  margin-bottom: 50px;
}

.store-item {
  padding-bottom: 0;
  margin:0;
}

img {
  width:15rem; 
  display: block; 
  margin-left: auto; 
  margin-right: auto; 
  border-radius: 2px;
  margin-bottom: 2rem;
}


.product-link {
  text-decoration: none;
  color:rgb(54, 51, 82);
}

a.product-link:hover {
  transition-duration: 0.4s;
  color: rgb(74, 74, 74, 0.7);
  text-decoration: underline;
}

.product-name, .price {
  text-align: center;
}







.custom-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px;
  padding-top: 100px;
  padding-left: 100px;
  width:200px;
  font-size: 13px;

}

.dropdown {
  position: relative;
  font-size: 13px;
}

.dropdown-selected {
  padding: 6px 30px 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  min-width: 100px;
  text-align: right;
}

/* Downward arrow */
.dropdown-selected::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid antiquewhite;
  pointer-events: none;
}

.dropdown-options {
  display: none; /* toggle to block with JS */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgb(37, 54, 38);;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;

  max-width: 150px;
}

.dropdown-option {
  padding: 6px 12px;
  cursor: pointer;
}

.dropdown-option:hover {
  text-decoration: underline;
}







/* Responsive Grid Container */
.store-item-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  padding: 40px 80px;
}

/* Make the entire product card a block link */
.store-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Individual Product Card */
.store-item {
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
  cursor: pointer;
  border-radius: 8px;
}

/* Product Image */
.store-item img {
  width: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s ease;
  margin: 0 auto 15px;
  display: block;
  border-radius: 4px;
}

/* Product Name */
.product-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  transition: text-decoration 0.7s ease;
}

/* Price */
.price {
  font-size: 1rem;
  color: antiquewhite;
}

/* Hover Effects */
.store-item:hover img {
  transform: scale(1.03);
}

.store-item:hover .product-name {
  text-decoration: underline;
}

/* Filter Buttons */
.filters {
  text-align: center;
  margin: 20px 0;
}

.filters button {
  margin: 0 10px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #eee;
  transition: background-color 0.3s;
  border-radius: 4px;
}

.filters button:hover {
  background-color: #ccc;
}









/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media (max-width: 1100px) {
  a.button {
    font-size: 1rem; 
  }

  .store-subheading {
    padding-right:40px;
    padding-left:40px;
  }
}


