.products{
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.products-main-container{
    padding: 100px 10px;
    width: 100%;
    max-width: 1124px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.company-title.products-title{
    width: 45%;
    margin-bottom: 20px;
}
.products-list-main{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 2px solid rgba(0,0,0,0.05);
    border-radius: 2px;
    width: 100%;
    padding: 10px 5px;
}
.products-list-buttons{
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}
.product-brand-btn{
    padding: 6px 8px;
    background-color: white;
    border: 2px solid black;
    border-radius: 2px;
    color: black;
    font-weight: 500;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
}
.product-brand-btn:hover{
    background-color: black;
    color: white;
    padding: 8px 10px;
    border: none;
}
.product-brand-btn.active{
    background-color: black;
    color: white;
    padding: 8px 10px;
    border: none;
}
.products-lists{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px;
}
.product-category{
    padding: 20px 0px;
}

.scroll-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.product-list-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-x: scroll;   /* Enable horizontal scrolling */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer */
    gap: 20px;
    width: 100%;
    padding: 0px 30px; 
    box-sizing: border-box;
}

/* Hide scrollbar for Webkit-based browsers (Chrome, Safari, etc.) */
.product-list-container::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 180px;
    transform: translateY(-50%);
    z-index: 80;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 4px 16px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.2s ease;
}

.scroll-btn.left {
    left: -18px;
}

.scroll-btn.right {
    right: -18px;
}

.scroll-btn:hover {
    background: rgba(0,0,0,0.8);
}

.horizontal-line{
    margin: 8px 0px 16px 0px;
}
.product-list{
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 220px;
}
.product-thumbnail{
    position: relative;
    width: 100%;
    height: 200px; 
    overflow: hidden;
}
.product-picture{
    width: 100%;
    height: 100%;
    object-fit:contain;
}
.product-brand{
    position: absolute;
    background-color: rgba(0,0,0,0.6);
    color:white;
    font-size: 12px;
    font-weight: 500;
    padding: 5px;
    bottom: 16px;
    right: 5px;
    border-radius: 2px;
}
.product-name{
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
    color: black;
}
.product-description{
    /* height: 240px;
    overflow: auto; */
    margin-top: 10px;
    color: #555;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show 3 lines only */
    -webkit-box-orient: vertical;
    max-height: 4.5em; /* approximately 3 lines */
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}
.product-description:hover {
  -webkit-line-clamp: unset;
  max-height: none;
  background: #f9f9f9;
  padding: 10px;
  z-index: 10;
  position: relative;
  border-radius: 2px;
}
.product-price{
    margin-top: 10px;
    color:  blue;
    font-weight: 600;
}

@media screen and (max-width: 600px) {
    .company-title.products-title{
        width: 90vw;
    }
    .scroll-btn{
        display: none;
    }
    .product-list-container{
        padding: 0px 5px;
    }
}