/* Grid container - force 4 columns on desktop */
.box-category-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* 4 columns desktop */
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Each box */
.box-category {
    min-width: 0;
}

.box-category-link {
    display: block;
    text-align: center;
    padding: 18px;
    border-radius: 10px;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.box-category-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.box-icon {
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

/* name & count */
.box-name {
    display: block;
    margin-bottom: 6px;
}

.box-count {
    display: block;
    color: inherit;
}

/* Tablet */
@media (max-width: 1024px) {
    .box-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Mobile */
@media (max-width: 768px) {
    .box-category-grid { grid-template-columns: 1fr !important; }
}
