.product-group-container{
  margin-top: 150px;
}

  .group-products {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* optional: spacing between items */
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .group-products img {
    max-width: 200px;
  }

  .group-products li {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
   
  .group-products a {
    text-decoration: none; 
    font-size: 1.2rem;
    font-weight: bold;
  }

  .product-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 2%;
    /* background-color: lightgray; */
  }

  .variants-row {
    display: flex;
    gap: 1rem; /* adjust spacing as needed */
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    justify-content: center;
  }

  .variants-row li {
    flex: 0 0 25%;
    max-width: 25%;
    justify-content: flex-end;
    text-align: center;
  }



  .variant-info {
    display: flex;
    justify-content: space-between; /* pushes title to left, price to right */
    align-items: center;
    gap: 1rem; /* optional spacing */
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 1rem;
  }
  
  .variant-title {
    font-weight: bold;
    font-family: 'Source Sans Pro';
    white-space: nowrap;       /* Prevents the text from wrapping */
    overflow: hidden;          /* Hides the overflowed text */
    text-overflow: ellipsis;   /* Adds the ellipsis (...) */
    max-width: 100%;           /* Optional: limits the width of the element */
  }

  .variant-price {
    font-weight: 100;
    font-family: 'Source Sans Pro';
    color: #1e1e1eb6;
    white-space: nowrap;       /* Prevents the text from wrapping */
  }
  

  /* Mobile style */

@media (max-width: 768px) {
  
  .variants-row {
    justify-content: flex-start;
    flex-wrap: nowrap;              /* Prevent wrapping */
    overflow-x: auto;      
  }

  .variants-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .variants-row li {
    flex: 0 0 75%;
    max-width: 75%;
  }
}