/*--------------------------------------------------------------
# Customers Also Viewed Section
--------------------------------------------------------------*/
.customers-also-viewed {
  padding-top: 60px;
  padding-bottom: 50px;
  clear: both; /* Ensure it clears floated elements above */
}

.customers-also-viewed h2 {
  text-align: center; /* Center the title */
  margin-bottom: 25px;
  font-size: 25px; /* Adjust size as needed */
  text-transform: uppercase;
}

/* Use default WooCommerce product grid styling if available */
/* Or add custom styles */

/* Example: Ensure 4 columns if theme/WC doesn't handle it */
.customers-also-viewed ul.products.columns-4 {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  max-width: 1200px;
  margin: auto;
}

.customers-also-viewed ul.products li.product {
  /* Assuming WC default is 4 columns, otherwise set width */
  /* width: calc(25% - 2em); */
  margin: 0 1em 2em; /* Adjust spacing */
  text-align: center;
  flex-grow: 1; /* Allow items to grow if needed */
  flex-basis: 20%; /* Base width slightly less than 25% for spacing */
  max-width: 25%; /* Ensure max width */
}

.customers-also-viewed ul.products li.product a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.customers-also-viewed ul.products li.product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px; /* Space between image and title */
}

.customers-also-viewed ul.products li.product .woocommerce-loop-product__title {
  font-size: 20px; /* Adjust title size */
  font-weight: 400;
  margin-bottom: 5px;
}

/* Adjust flexbox for smaller screens if needed */
@media (max-width: 768px) {
  .customers-also-viewed ul.products.columns-4 li.product {
    flex-basis: 40%; /* 2 columns on medium screens */
    max-width: 50%;
    padding: 0 10px; /* Adjust padding for spacing */
  }
}
@media (max-width: 480px) {
  .customers-also-viewed ul.products.columns-4 li.product {
    flex-basis: 90%; /* 1 column on small screens */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px; /* Adjust padding for spacing */
  }
  .customers-also-viewed ul.products {
    margin: 0;
  }
}
