/* |--↓-↓-↓ Start gallery.html ↓-↓-↓--| */
#main-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#gallery-top {
  display: flex;
  flex-direction: row;
  align-items: top;
  gap: 10px;
  margin-bottom: 50px;
}

.left-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#product-carousel-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#product-carousel-feature h2 {
  font-size: 1.875rem;
  width: 50%;
  text-align: center;
  text-shadow: var(--text-shadow-layered);
  color: var(--color-destin-sand);
  background-color: var(--color-mid-green);
  border: solid var(--color-destin-sand);
  border-radius: 10px;
  padding-left: 20px;
  box-shadow: var(--shadow-medium);
}

#product-category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  width: 60vw;
}

#product-carousel {
  display: flex;
  flex-direction: row; /* Flexbox layout for horizontal row */
  gap: 10px; /* Space between product cards */
  overflow-x: hidden; /* Changed from 'auto' to 'hidden' */
  scroll-behavior: smooth; /* Smooth scrolling for buttons */
  padding: 10px; /* Optional padding inside the carousel */
  white-space: nowrap; /* Prevent wrapping to a new row */
  min-height: 550px;
  align-items: center;
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 250px;
  min-width: 250px;
  max-height: 350px;
  flex: 0 0 auto; /* Prevent resizing of cards */
  border: 1px solid var(--color-dark-green);
  border-radius: 15px;
  padding: 10px;
  margin-left: 20px;
  align-items: center;
  text-align: center;
  white-space: normal;
  background-color: var(--color-destin-sand);
  box-shadow: var(--shadow-subtle);
  transition: all 0.5s ease-in-out; /* Added for smooth transitions */
}

.product-card h3,
.product-card .description,
.product-card p,
.product-card button {
  margin-top: 5px;   /* reduce vertical spacing */
  margin-bottom: 5px; 
}

.product-card img {
  margin-bottom: 5px; /* space between image and title */
}

.product-card img {
  max-width: 100%;
  height: auto;
  display: block;
  border: solid var(--color-mid-green);
  border-radius: 8px;
  align-items: center;
}

.product-card.is-centered {
  width: 340px;
  transform: scale(1.2);
  box-shadow: var(--shadow-strong);
  background-color: var(--color-destin-sand);
  white-space: normal;
}

#scroll-left, #scroll-right {
  cursor: pointer;
  background-color: var(--color-dark-green);
  color: var(--color-destin-sand);
  border: none;
  padding: 10px;
  border-radius: 50%;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .product-card {
    min-width: 150px;
    max-width: 200px;
  }

  #product-carousel {
    gap: 5px;
  }
}

#product-list {
  display: flex;
  flex-direction: row;
  gap: 50px;
}

.add-to-cart-btn {
  cursor: pointer;
  background-color: var(--color-mid-green);
  border: solid 1px var(--color-dark-green);
  color: var(--color-dark-green);
  font-weight: bold;
  border-radius: 5px;
  box-shadow: var(--shadow-strong);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: var(--color-destin-sand);
  border: solid var(--color-dark-green);
  color: var(--color-dark-green);
  border-radius: 5px;
  box-shadow: var(--shadow-strong);
}

#cart-details {
  color: var(--color-dark-green);
  font-size: 1.3rem;
  font-weight: bold;
  border: solid var(--color-dark-green);
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#cart-details:hover {
  background-color: var(--color-mid-green);
  color: var(--color-destin-sand); 
  box-shadow: var(--shadow-medium);
}

.right-side {
  margin-left: 48px;
  margin-top: 52px;
}