
.product-category-nav, .product-category-list{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    justify-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 40px clamp(16px, 6vw, 110px);
    gap: 28px;
}

@media (min-width: 1101px) {
    .product-category-nav,
    .product-category-list{
        grid-template-columns: repeat(3, minmax(240px, 320px));
        justify-content: center;
        padding: 40px 24px;
        gap: 24px;
    }
}

.product-category-nav-item{
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

.product-category-nav-item span{
    color: var(--wc-red);
    display: block;
    line-height: 1.3;
    min-height: 2.6em;
}

.product-cat-img{
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-position: center;
    background-size: cover;
    aspect-ratio: 2;
    border-radius: 6px;
}

.product-category-nav-item .c2a-button{
    margin-top: auto;
    width: min(220px, 100%) !important;
    align-self: center;
    padding: 9px 16px;
    font-size: 0.92rem;
}

@media (min-width: 1101px) {
    .product-category-nav-item{
        gap: 8px;
    }

    .product-category-nav-item span{
        min-height: 2.2em;
    }

    .product-category-nav-item .c2a-button{
        margin-top: 4px;
    }
}

/* Product detail slider only: show images at 80% (20% smaller) */
section[data-ele="productlist"] #prodslider .slide {
    background-size: 80% auto;
    background-position: center;
}

@media (max-width: 768px) {
    .product-category-nav,
    .product-category-list{
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 14px;
    }

    .product-category-nav-item{
        max-width: 520px;
        margin: 0 auto;
    }

    .product-category-nav-item span{
        min-height: 0;
    }

    section[data-ele="productlist"] #prodslider .slide {
        background-size: 90% auto;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .product-category-nav,
    .product-category-list{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 32px 20px;
    }
}