/* Main Grid of Mega Menu */
.mega-menu-grid{
    display: grid;
    padding: 18px;
    background: #fff;
    border-radius: 8px;

    /* force 4 rows per column */
    grid-template-rows: repeat(4, auto);

    /* allows unlimited columns (but PHP limits to 3) */
    grid-auto-flow: column;
    grid-auto-columns: 220px;

    column-gap: 28px;
    row-gap: 14px;
}

/* Individual category box */
.mega-cat-box{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    transition: background .18s ease, transform .12s ease;
}
.mega-cat-box:hover{
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Image wrapper */
.cat-img{
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-img img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Title */
.cat-title{
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

/* View All button column (fixed last column) */
.mega-menu-grid .view-all-col{
    align-self: end;
}
.view-all-btn{
    color: #ff6b5b;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}
