/* Product List */
.product-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Fixed width with flexible grid */
    gap: 10px 5px; /* Space between items */
    justify-content: start; /* Align items to the left */
}

/* Product Item */
.product-item {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    height: 100%; /* Ensure the container takes full height */
    /* min-height: 400px;*/ /* Adjust as needed */
    position: relative;
    border: 2px solid #eee;
    /* margin-bottom: 10px; */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

/* Product Link */
.product-link {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure the link takes full height */
    text-decoration: none;
    color: inherit; /* Inherit text color from parent */
}

/* Image Container */
.image-container {
    position: relative;
    overflow: hidden;
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    text-align: center; /* Center the image */
    flex-shrink: 0; /* Prevent image from shrinking */
    border-radius: 6px;
    /*margin-bottom: 10px;*/
}

.image-container img {
    display: block;
    width: 250px;
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease-in-out;
    object-fit: contain;
}

.product-link:hover .image-container img {
    transform: scale(1.05);
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    flex: 1; /* Allow product-card to take remaining space */
    padding: 20px 2px;
}

/* Description */
.description {
    font-size: 0.9em;
    color: #555;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit description to 4 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis; /* Add ellipsis for overflow */
    line-height: 1.4; /* Adjust line height for better readability */
    max-height: calc(1.4em * 4); /* Set max height to 4 lines */
    flex: 1; /* Allow description to take remaining space */
}

/* Price Container */
.price-container {
    background-color: rgba(108, 76, 36, 0.3);
    padding: 5px 10px; /* Adjust padding as needed */
    display: flex;
    flex-wrap: wrap; /* Allow prices to wrap to the next line */
    gap: 0.8rem; /* Space between price items */
    align-items: baseline; /* Align items at their baseline */
    margin-top: auto; /* Push price container to the bottom */
}

/* Current Price */
.current-price {
    font-size: 1.3em;
    font-weight: bold;
    color: rgba(108, 76, 36);
}

/* Old Price */
.old-price {
    font-size: 0.9em;
    color: rgba(108, 76, 36, 0.6);
    text-decoration: line-through;
}

/* Price Change */
.price-change {
    font-size: 0.9em;
    color: green; /* Or red for negative change */
}

.hr-category-gradient {
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, #4a4a4a, transparent);
    margin: 5px 0;
}

.hr-category-double {
    border: none;
    height: 4px;
    background: linear-gradient(to right, 
        transparent 0%, 
        #333 50%, 
        transparent 100%
    );
    position: relative;
    margin: 5px 0;
}

.no-results {
    text-align: center;
  }

/* Responsive Adjustments */
/* Add this to your existing CSS */
@media (max-width: 520px) {
    .product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Other adjustments for small screens */
    .product-card {
        width: 100%;
        max-width: 100%;
    }
    
    .description {
        /* Adjusted for two-column layout */
        -webkit-line-clamp: 3;
        line-clamp: 3;
        max-height: 4.5em;
    }
    
    /* Additional styling adjustments */
    .image-container {
        width: auto;
        height: auto;
    }

    .image-container img {
        width: 120px;
        height: 120px;
    }
    
    .price-container {
        flex-direction: column;
        align-items: flex-start;
        font-size: 1.3rem;
        padding: 10px 10px; /* Adjust padding as needed */
    }

    /* Current Price */
.current-price {
    font-size: 1em;
    font-weight: bold;
    color: rgba(108, 76, 36);
}

/* Old Price */
.old-price {
    font-size: 0.7em;
    color: rgba(108, 76, 36, 0.6);
    text-decoration: line-through;
}

/* Price Change */
.price-change {
    font-size: 0.8em;
    color: green; /* Or red for negative change */
}
}