@import url('https://fonts.googleapis.com/css2?family=Hurricane&display=swap');

.artTitleCopy {
  margin: 2em auto;
  width: 80%;
  color: white;
  font-family: 'Hurricane', cursive;
  font-weight: 400;
  font-style: normal;
}

.title {
  font-family: 'Hurricane', cursive;
  font-size: 3em;
}

.subtitle {
  font-size: 1.5em;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  padding: 20px;
}

.contactLink,
.artsyContact {
  color: #3b570c;
  font-size: 1.5em;
}

#productContainer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5em;
  padding: 30px;
  justify-content: center;
  width: 80%;
  height: fit-content;
  margin: 10px auto;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-style: normal;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  border: solid 2px white;
  box-shadow: 4px 4px 15px rgba(59, 87, 12, 0.6);
  padding: 20px;
  text-align: center;
  width: 100%;
  transition: transform 0.2s ease-in-out; /* Smooth transition for hover */
}

.product:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

.productImg {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.productDescription {
  margin-top: 15px;
  background-color: var(--artSecondary);
  color: white;
  border-radius: 10px;
  padding: 10px;
}

.productName {
  font-size: 1.5em;
  font-weight: bold;
}

.productPrice {
  font-size: 1.25em;
  padding: 5px;
}

.galleryLinkContainer {
  background-color: var(--artSecondary);
}

.galleryLink {
  margin: auto auto;
  text-decoration: none;
  color: white;
  background-color: var(--artPrimary);
  padding: 10px;
  border-radius: 10px;
}

.galleryLinkContainer:hover {
  background-color: var(--artPrimary);
}

.galleryLink:hover {
  background-color: var(--artSecondary);
}

@media (max-width: 1440px) {
  .title {
    font-size: 2.5em;
  }
  #productContainer {
    grid-template-columns: repeat(3, 1fr);
    gap: 4em;
  }
}

/* Laptop (Max Width: 1024px) */
@media (max-width: 1024px) {
  .title {
    font-size: 2.2em;
  }
  .subtitle {
    font-size: 1.3em;
    padding: 15px;
  }
  #productContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 3em;
  }
  .productImg {
    height: 200px;
  }
}

/* Tablet (Max Width: 768px) */
@media (max-width: 768px) {
  .title {
    font-size: 2em;
  }
  .subtitle {
    font-size: 1.2em;
    padding: 10px;
  }
  #productContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    width: 90%;
  }
  .product {
    padding: 15px;
  }
  .productImg {
    height: 180px;
  }
  .productName {
    font-size: 1.3em;
  }
  .productPrice {
    font-size: 1.1em;
  }
}

/* Mobile (Max Width: 480px) */
@media (max-width: 480px) {
  .title {
    font-size: 1.8em;
  }
  .subtitle {
    font-size: 1em;
    padding: 8px;
  }
  #productContainer {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5em;
    width: 95%;
  }
  .product {
    padding: 10px;
  }
  .productImg {
    height: 500px;
  }
  .productName {
    font-size: 1.2em;
  }
  .productPrice {
    font-size: 1em;
  }
  .contactLink,
  .artsyContact {
    font-size: 1.2em;
  }
}
