/* =============================================================================
   Section list ("GROCERIES : ALL CATEGORIES" grid) - light card look.
   Pilot on shop/shopListByCatSection.aspx. CSS only: same markup
   (ul > li > a > .SecImageList img + .SecImageListName), same fonts and colours.
   Replaces the floated 14%-wide tiles with a responsive grid, swaps the black
   name bar for a white card (photo on white, name on light grey) with a thin border, and adds a hover lift.
   ============================================================================= */
.category_productholderSectionList_Shophome ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 16px;
    width: 100%;
    margin: 0;
    padding: 6px 0 10px;
    list-style: none;
}

    .category_productholderSectionList_Shophome ul li,
    .category_productholderSectionList_Shophome ul li.llm,
    .category_productholderSectionList_Shophome ul li:last-child {
        float: none;
        width: auto;
        height: auto;
        margin: 0;
        box-sizing: border-box;
        background: #fff;
        border: 1px solid #e6e9ec;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: none;
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

        .category_productholderSectionList_Shophome ul li:hover {
            transform: translateY(-4px);
            border-color: #d9dde3;
            box-shadow: 0 10px 24px rgba(16, 42, 67, .12);
        }

        .category_productholderSectionList_Shophome ul li a {
            display: block;
            color: #333;
            text-decoration: none;
        }

        /* The name div sits inside .SecImageList, so size the picture, not the box. */
        .category_productholderSectionList_Shophome ul li .SecImageList {
            display: block;
            width: 100%;
            overflow: hidden;
            text-align: center;
        }

            /* style.css fixes the picture height per breakpoint (120px to 190px) with a
               more specific "div.SecImageList img" selector; the square card needs it free. */
            .category_productholderSectionList_Shophome ul li div.SecImageList img {
                display: block;
                width: 100%;
                height: auto !important;
                aspect-ratio: 1 / 1;
                object-fit: contain;
                box-sizing: border-box;
                padding: 8%;
                background: #fff;
                transition: transform .25s ease;
            }

        .category_productholderSectionList_Shophome ul li:hover .SecImageList img {
            transform: scale(1.05);
        }

        .category_productholderSectionList_Shophome ul li .SecImageListName {
            position: static;
            top: auto;
            width: auto;
            box-sizing: border-box;
            height: 58px;                 /* two lines; names are capped at 25 characters */
            padding: 0 10px;
            background: #f7f8f9;
            border-top: 1px solid #eef1f3;
            color: #333;
            font-size: 13px;
            line-height: 18px;
            text-align: center;
            display: flex;
            align-items: center;          /* name sits in the middle of the strip */
            justify-content: center;
            overflow: hidden;
            transition: color .2s ease;
        }

        .category_productholderSectionList_Shophome ul li:hover .SecImageListName {
            color: #F68D1E;
        }

/* Columns by width: 6 / 5 / 4 / 3 / 2 */
@media screen and (max-width: 1366px) {
    .category_productholderSectionList_Shophome ul {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    .category_productholderSectionList_Shophome ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .category_productholderSectionList_Shophome ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 10px;
    }
}

@media screen and (max-width: 480px) {
    .category_productholderSectionList_Shophome ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .category_productholderSectionList_Shophome ul li .SecImageListName {
            font-size: 12px;
            height: 52px;
            padding: 0 8px;
        }
}
