.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0.1rem;
    justify-items: center;
}

.product-item {
    background-color: rgba(108, 76, 36, 0.2);
    padding: 0.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 300px;
}

/* 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: 100%;
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease-in-out;
    object-fit: contain;
}

.description {
    font-size: 0.9em;
    color: #555;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 12; /* 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 * 12); /* 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 */
}


.back-to-category-section {
    display: flex;
    justify-content: center; /* Center the button horizontally */
}

.updated_at {
    background-color: rgba(108, 76, 36, 0.2);
    padding: 1rem 0.2rem 0.2rem 0.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hr-category-gradient {
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, #4a4a4a, transparent);
    margin: 5px 0;
}