.product-container {
    display: flex;
    flex-direction: row;
    justify-content: left;
    gap: 100px;
}

.product-image {
    width: 40%;
    height: auto;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    transition: all 0.1s;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--textcolour);
    font-size: 1.6rem;
    cursor: pointer;
}

button:hover {
    color: var(--hovercolour);
    cursor: pointer;
}

#order-link,
button {
    font-size: 3rem;
    background-color: rgb(0, 129, 214);
    width: fit-content;
    padding: 5px;
    border-radius: 5px;
}

#product-type {
    font-size: 2.5rem;
    transition: all 0.2s;
    color: var(--textcolour);
    cursor: default;
}

#order-link:hover {
    background-color: rgb(0, 153, 255);
    border-radius: 2px;
}

#product-price {
    font-weight: bolder;    
    font-size: 1.8rem;
}

textarea {
    width: 300px;
    height: 200px;
    max-width: 100%;
    resize: both;
    overflow-y: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--textcolour);
    font-size: 1.6rem;
    border: var(--bordercolour) 1px solid;
    padding: 5px;
    border-radius: 5px;
}

label {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--textcolour);
    font-size: 1.6rem;
}

/* For Chrome, Safari, Edge */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--backgroundcolour) inset; /* or your input's background color */
    -webkit-text-fill-color: var(--textcolour); /* or your desired text color */
    transition: background-color 5000s ease-in-out 0s; /* prevents flash of autofill color */
}

/* Optional: Firefox */
input:-moz-autofill {
    box-shadow: 0 0 0px 1000px var(--backgroundcolour) inset;
    -moz-text-fill-color: var(--textcolour);
}


input {
    padding: 5px;
    border-radius: 5px;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--textcolour);
    font-size: 1.6rem;
}

input:valid {
    border: #1e1 1px solid;
}

input:invalid {
    border: #ff0000 1px solid;
}

@media only screen and (max-width: 998px) {

    .product-container {
        flex-direction: column;
        align-items: center;
    }

    .product-image {
        width: 70%;
    }

}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 40%;
}

.product-image {
  width: 100%;
  border-radius: 5px;
  object-fit: contain;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-thumbnails img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s;
}

.product-thumbnails img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}



@media only screen and (max-width: 998px) {
  .product-gallery {
    width: 70%;
    align-items: center;
  }

  .product-thumbnails img {
    width: 60px;
    height: 60px;
  }
}
