.other-products {
    width: stretch;
}
.products {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 100px auto;
    padding: 0;
    width: 100%;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        margin: 80px auto;
    }
}

.products li {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products li:hover a img, .category-item:hover  {
    transform: translateY(-5px) scale(1.02); /* subtle lift */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px; /* keeps corners smooth */
}

.products li a img {
    object-fit: cover;
    max-height: 291px;
    width: 100%;
    display: block;
    flex-shrink: 0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


li .button {
    border-radius: 5px;
    border: 1px solid var(--Black, #000);
    background: var(--Beige, #D9D7CB);
    color: var(--Black, #000);
    display: flex;
    /*width: fit-content;*/
    box-sizing: border-box;
    transition: ease-in-out 0.2s;
    align-items: center;
    padding: 5px 0;
    margin-top: 14px;
    width: 60%;
    text-transform: uppercase;
    text-decoration: none;
}

.products li:hover .button, .category-item:hover .category-cta {
        border: 1px solid var(--White, #FFF);
        background: var(--Softer-Black, #252522);
        color: var(--White, #FFF);
}

.products li h2 {
   padding-top: 6px;
}

.products li span {
   padding-top: 0;

}

.products li a {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


li.product {
    position: relative;
}

li.product .add_to_cart_button {
    position: absolute;
    bottom: 85px;
    right: 7px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3;
}

li.product:hover .add_to_cart_button {
    opacity: 1;
    pointer-events: auto;
}